我试过多字段查询,它工作正常。但是我想知道在 flex 搜索中通常使用哪些其他选项来查询多个字段?
最佳答案
具有多个术语的结构化查询,用于查找精确值,与SQL相同
https://www.elastic.co/guide/en/elasticsearch/guide/current/_finding_multiple_exact_values.html
"bool" : {
"must" : [
{ "term" : { "tags" : "search" } },
{ "term" : { "tag_count" : 1 } }
]
}
关于elasticsearch - 如何在Elasticsearch中查询多个字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33733380/