Skip to content

Package Index tweaks #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2021
Merged

Package Index tweaks #446

merged 1 commit into from
Sep 12, 2021

Conversation

kevanstannard
Copy link
Contributor

Hi @ryyppy, I noticed the discussion about the Package Index recently and took a quick look.

This PR contains a few tweaks that may help, see what you think.

Main change

The current Fuse.js options for location and distance favour terms near the start of search fields, but I suspect for the Package Index the location of the term is less important. So I've set the ignoreLocation prop to true and removed location and distance.

This small tweak seems to produce reasonable search results. E.g. zora and fast are returning expected results. Plus a spot check of various terms seems to be working well.

How does it look to you?

Other changes

[1] Remove re-schema-form from packages_url_resources.json. It looks like this package is available from npm now. Also fixes a React duplicate key error.

[2] Remove duplicates in the keywords field. It looks like at least one npm package has duplicate keywords, so this fixes a React duplicate key error.

@ryyppy
Copy link
Member

ryyppy commented Sep 12, 2021

LGTM

@ryyppy ryyppy merged commit be869f6 into rescript-lang:master Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants