cornelius / inqlude

Command line client for independent Qt library archive
inqlude.org
GNU General Public License v2.0
31 stars 11 forks source link

Reactive search for libraries on website #93

Open richbowen opened 7 years ago

richbowen commented 7 years ago

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:

cornelius commented 7 years ago

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.

cornelius commented 6 years ago

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

richbowen commented 6 years ago

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.

cornelius commented 6 years ago

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.

cornelius commented 6 years ago

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.