Gatsby: [docs] stub: Adding Search with Elasticlunr

Created on 31 Jan 2020  Â·  5Comments  Â·  Source: gatsbyjs/gatsby

Summary

Write the article for Adding Search with elasticlunr

Steps to resolve this issue

Draft the doc

Open a pull request

  • [ ] Open a pull request with your work including the words "closes #[this issue's number]" in the pull request description
help wanted not stale documentation

Most helpful comment

Yes, I'd like to contribute.

I have a blog post about the Lunrjs:
https://www.kunxi.org/2020/02/adding-search-to-gatsby-via-lunrjs/.
https://www.kunxi.org/2020/02/adding-search-to-gatsby-via-lunrjs/

Can you leave some feedback for the gap between the blog post to the
document?

Thanks,
Kun

On Fri, Apr 17, 2020 at 5:18 PM Marcy Sutton notifications@github.com
wrote:

We would love to have your contribution @kunxi https://github.com/kunxi,
are you still interested in working on a doc about search with Lunr /
Elasticlunr? I haven't worked with those tools before, what are the
differences? Could a single doc mention both libraries to help users
understand their options?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gatsbyjs/gatsby/issues/21066#issuecomment-615519163,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABFJAISX2UCMKZ6U6SQYELRNDWTRANCNFSM4KN76YAA
.

All 5 comments

I am interested in contributing the document.

I have tried the Lunr integration in this blog post.

It looks like the elasticlunr is no longer actively maintained, do you think integration lunrjs is acceptable option?

We could have both Lunrjs and Elasticlunr or are they too similar? This fork of Elasticlunr is maintained and functioning. https://github.com/gatsby-contrib/gatsby-plugin-elasticlunr-search

We would love to have your contribution @kunxi, are you still interested in working on a doc about search with Lunr / Elasticlunr? I haven't worked with those tools before, what are the differences? Could a single doc mention both libraries to help users understand their options?

Yes, I'd like to contribute.

I have a blog post about the Lunrjs:
https://www.kunxi.org/2020/02/adding-search-to-gatsby-via-lunrjs/.
https://www.kunxi.org/2020/02/adding-search-to-gatsby-via-lunrjs/

Can you leave some feedback for the gap between the blog post to the
document?

Thanks,
Kun

On Fri, Apr 17, 2020 at 5:18 PM Marcy Sutton notifications@github.com
wrote:

We would love to have your contribution @kunxi https://github.com/kunxi,
are you still interested in working on a doc about search with Lunr /
Elasticlunr? I haven't worked with those tools before, what are the
differences? Could a single doc mention both libraries to help users
understand their options?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gatsbyjs/gatsby/issues/21066#issuecomment-615519163,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABFJAISX2UCMKZ6U6SQYELRNDWTRANCNFSM4KN76YAA
.

Elasticlunr is apparently a reimplementation of lunr that's supposed to give some more features and a smaller index size.

But: Elasticlunr doesn't seem to be in active development; there has hardly been any commits for the last year.

Furthermore, the npm downloads for Lunr are about 30 times those of Elasticlunr so I'd say it would make sense to jump horses to lunr.

On the other hand, the Gatsby plugin for Elasticlunr is way more popular than the one for Lunr, which hasn't been updated in a year.

Screen Shot 2020-06-21 at 11 15 25 AM

What do you think we should do @tesseralis @marcysutton ? I'm happy to write the page, but I just want to be sure I pick the right implementation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandonmp picture brandonmp  Â·  3Comments

theduke picture theduke  Â·  3Comments

dustinhorton picture dustinhorton  Â·  3Comments

magicly picture magicly  Â·  3Comments

Oppenheimer1 picture Oppenheimer1  Â·  3Comments