[英]Elastic search ignore tf in match_phrase query
我正在嘗試解決以下問題。 我生成match_phrase查詢,但我想忽略分數中的詞頻。
我嘗試使用常量查詢,但是:
“ [constant_score]查詢不支持[match_phrase]”
然后,我嘗試編寫一個自定義相似性函數,但不再支持側插件接縫。
還有其他想法嗎?
謝謝
我不確定是否要遵循。 match_phrase
在constant_score
應該工作:
GET /<index>/_search
{
"query": {
"constant_score" : {
"filter" : {
"match_phrase" : { "<field>" : "<phrase>"}
}
}
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.