问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/53904137/can-elasticsearch-return-relevant-passages-and-not-the-entire-document