You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are indexing text, by example, with ElasticSearch, you can get a portion of the text where the search was found, using highlight, so that you can highlight content matching the query.
Would be awesome if mongoid_fulltext could do the same.
Is it possible?
The text was updated successfully, but these errors were encountered:
It's a valid feature request. It needs some thought about how it would be implemented in mongoid_fulltext. To be added to this gem it would need to leverage the database, ie. n-gram data stored has associated metadata that points directly to where the text is located in the text being searched, probably just start and end of the word.
If you are indexing text, by example, with ElasticSearch, you can get a portion of the text where the search was found, using
highlight
, so that you can highlight content matching the query.Would be awesome if mongoid_fulltext could do the same.
Is it possible?
The text was updated successfully, but these errors were encountered: