我正在尝试在 elasticsearch dsl 下方进行思考。有人能告诉我下面如何使用 `must` 子句吗
I am trying to wrap my head around below elasticsearch dsl. Can someone tell me how `must` clause is used below
GET qnaindexfinal/_search
{
"query":{
"bool":{
"must":[
{
"common":{
"question.questionText":{
"query":"showrroom",
"cutoff_frequency":0.001
}
}
}
],
"filter":[
{
"term":{
"modelId":{
"value":78
}
}
}
]
}
}
}
请帮我解决上面的dsl问题
对于 elasticsearch 中的查询,最好将其分解一些。
common
same as a term but for more than one keyword
term
值 == 78
must
在此上下文中检查返回的唯一文档是否同时匹配 common 和 term。
GET qnaindexfinal/_search
{
"query":{
"bool":{
"must":[
{
"common":{
"question.questionText":{
"query":"showrroom",
"cutoff_frequency":0.001
}
}
}
],
"filter":[
{
"term":{
"modelId":{
"value":78
}
}
}
]
}
}
}
请帮我解决上面的dsl问题
对于 elasticsearch 中的查询,最好将其分解一些。
common
same as a term but for more than one keyword
term
值 == 78
must
在此上下文中检查返回的唯一文档是否同时匹配 common 和 term。