-
Notifications
You must be signed in to change notification settings - Fork 11
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
Reactive search for libraries on website #93
Comments
This sounds like a good idea. Maybe somebody finds some time to implement it. The relevant code is in the view template for the two column layout. |
We currently use Google Site Search. This will be shut down by April 1 2018 so we need to find an alternative like the one mentioned above. Another alternative might be https://github.com/cebe/js-search |
Cool. Not sure if you realized but js-search relies on PHP to generate the search index. Here are a few libraries I've come across:
I'll do some more research and update this accordingly. |
Using PHP to create the index might be ok as long as it's not required at runtime. I would like to keep the web site static HTML to avoid any trouble with server-side components, but for the toolchain to generate the site I would be open to use the tools which do the job best even if that means another dependency. |
Fuzzysort and Lunr look interesting. Thanks for looking into this. I would try to avoid a non free software solution if there is a decent alternative. |
When searching for a library from the search bar, filter results real-time in the same view, as the user types ( eg. If the user types the search term 'gpl' they see all 'gpl/lgpl' libraries, 'windows' => all windows compatible libraries etc.). Being that all package data is in JSON, manipulating it for this purpose should be very doable. Vue comes to mind for implementing the reactive search feature without any bells and whistles (Heres an example of 'reactive search' using vue).
Advantages:
The text was updated successfully, but these errors were encountered: