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
site search #332
Comments
I'm working on LunrJS integration. Therepo is on https://bitbucket.org/aerobatic/gatsby-lunr and hope to have a blog post on it by end of week. |
thanks mate! LunrJS looks pretty good. Do let us know when your blog post is up! |
You might find interesting stuff in this issue MoOx/phenomic#142 |
I have working search (though no propper UI yet) using elasticlunr here: https://github.com/Alxandr/alxandr.me/blob/feature/search/plugins/@alxandr/gatsby-plugin-search/gatsby-node.js |
An officially supported strategy for search in Gatsby would be wonderful. I'm not aware of a "1.1" or "2.0" roadmap, but if there was such a thing I'd vote for "Search" to be on there. @bvaughn was asking around about Gatsby site search a while back, and I replied:
I know great search can be achieved with services like Algolia or Elastic, but it'd be nice to have a fairly feature-rich self-hosted option, static or otherwise. |
FWIW I still have plans to build a plug-in for js-worker-search at some point. |
Any updates on this? Please use GitHub repos so we can collaborate. |
I turned some earlier work from this thread into a gatsby plugin NPM package; npm and repo. I'd like some feedback on it, though. I feel like the Major shout out to @ivanoats's and @Alxandr's examples. I most definitely followed in their footsteps. Thoughts? |
Adding code to the config is certainly allowed as it's a normal node.js module, especially small amounts of code like in your readme. If the plugin could require more code than that, I'd encourage consumers to out the code in a separate module. |
I believe that is the extent of code required for the config file. I will submit a PR shortly to the docs's page listing the above plugin on the list of community supported plugins. Thanks! |
Heres an article about how to make a searchable static site with |
Closing this issue as it's a problem that'll be solved via plugins rather than in Gatsby core. |
what are some strategies to getting search working on a static generated site? i.e. is it possible to allow people to search my blog if it's a static site? How would that work?
The text was updated successfully, but these errors were encountered: