Reputation: 73
I'm looking for a search engine that is able to return just relevant passages as a result and not the entire documents. Is ElasticSearch able to do this?
Upvotes: 1
Views: 1033
Reputation: 10859
If you are looking to extract part of a long document, look at Highlighting. Specifically parameters like fragment_size
(100 characters by default) or boundary_chars
will help you to build that functionality.
Upvotes: 2