Can ElasticSearch return relevant passages and not the entire document

混江龙づ霸主 提交于 2020-01-06 05:34:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!