咨询一个 ES 的问题
<p>一个业务系统之前用的是 ES6.x 的,查询里的 filter 写的是</p>
<pre><code class="language-json">{
terms:{
eventName:[
"xxx"
]
}
}
</code></pre>
<p>然后换了个 ES7.x 的版本 这个查询就查不到数据了 要改成</p>
<pre><code class="language-json">{
terms:{
eventName.keyword:[
"xxx"
]
}
}
</code></pre>
<p>eventName 要改成 eventName.keyword 才有数据 请问这个查询怎么兼容,我翻了一下 es 的更新日志也没有发现相关的变更项</p>
收藏(0)
分享
相关标签:
注意:本文归作者所有,未经作者允许,不得转载
-
2022年6月20日 01:56
text 类型没法精确匹配
0
0
-
2022年6月20日 02:28
term 用于 keyword 。
0
0