I'm currently experimenting with a search feature using Elasticsearch in a statically generated website (vimcolorschemes.com), and so far it's really good!
It's probably overkill for my needs, but the installation was seamless, and the search API is simple to use, not to mention fast!
I'm a professional PHP, Python and Javascript developer from the UK. I've worked with Django, Laravel, and React, among others. I also maintain a legacy Zend 1 application.
vimcolorschemes has a pretty large dataset (couple of MBs) that I don't feel comfortable loading upfront. Using something like Elasticsearch gives me the flexibility of loading the search index only if the user uses the search feature, as well as only loading the results (not the whole index).
That said, the other option I'm looking into is creating a simple Express API that uses something like Fuse. I could upload the dataset at build time, and query it through the API on the client.
Fuse looks super intuitive, so I'll definitely consider it. Thanks Matthew!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm currently experimenting with a search feature using Elasticsearch in a statically generated website (vimcolorschemes.com), and so far it's really good!
It's probably overkill for my needs, but the installation was seamless, and the search API is simple to use, not to mention fast!
Did you look at Fuse? That might be a better fit for that use case.
Hey Matthew, thanks for the suggestion!
vimcolorschemes has a pretty large dataset (couple of MBs) that I don't feel comfortable loading upfront. Using something like Elasticsearch gives me the flexibility of loading the search index only if the user uses the search feature, as well as only loading the results (not the whole index).
That said, the other option I'm looking into is creating a simple Express API that uses something like Fuse. I could upload the dataset at build time, and query it through the API on the client.
Fuse looks super intuitive, so I'll definitely consider it. Thanks Matthew!