Questions tagged «querydsl»

1
elasticsearch的Query DSL中must和filter有什么区别?
我是弹性搜索的新手,在must和filter之间感到困惑。我想在我的条款之间执行and操作,所以我这样做了 开机自检/ xyz / _search { "query": { "bool": { "must": [ { "term": { "city": "city1" } }, { "term": { "saleType": "sale_type1" } } ] } } } 这给了我所需的结果,既匹配了术语,又使用了像这样的过滤器 开机自检/ xyz / _search { "query": { "bool": { "must": [ { "term": { "city": "city1" } } ], …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.