Skip to content
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

Get surrounding text for search. #158

Closed
Tombert opened this issue Jun 1, 2015 · 1 comment
Closed

Get surrounding text for search. #158

Tombert opened this issue Jun 1, 2015 · 1 comment

Comments

@Tombert
Copy link

Tombert commented Jun 1, 2015

Hello! I am curious about this...when you search on Google for something, you get the results (obviously), and then a little excerpt of the page with the surrounding text. Is there any mechanism in which to do this in Lunr.js?

@olivernn
Copy link
Owner

Currently, no 😞

This is a very popular request, the trouble is that it is completely incompatible with the current way lunr stores its index of documents and performs searches. As such implementing it is not easy, not to say it is something that will never happen, just that it probably won't be available anytime soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants