elasticsearch boost importance of exact phrase match

前端 未结 5 933
无人共我
无人共我 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:50

    I think its default behaviour already with match query "or" operator. It'll filter phrase "web developer" first and then terms like "web" or "develeper". Though you can boost your query using above answers. Correct me if I'm wrong.

提交回复
热议问题