我想字符串完全匹配":Feed:"的message 领域,每天回去把所有这些记录.我的json似乎也与简单的单词相匹配" feed ".我不确定我哪里出错了.我是否需要添加"constant_score"此查询JSON?我目前的JSON如下所示:
{
"query": {
"bool": {
"must": {
"query_string": {
"fields": ["message"],
"query": "\\:Feed\\:"
}
},
"must": {
"range": {
"timestamp": {
"gte": "now-1d",
"lte": "now"
}
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)