elasticsearch boost importance of exact phrase match

前端 未结 5 942
无人共我
无人共我 2020-12-25 15:12

Is there a way in elasticsearch to boost the importance of the exact phrase appearing in the the document?

For example if I was searching for the phrase \"web develo

5条回答
  •  鱼传尺愫
    2020-12-25 15:35

    You could try using rescore to run an exact phrase match on your initial results. From the docs:

    "Rescoring can help to improve precision by reordering just the top (eg 100 - 500) documents returned by the query and post_filter phases, using a secondary (usually more costly) algorithm, instead of applying the costly algorithm to all documents in the index."

    http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-rescore.html

提交回复
热议问题