【发布时间】:2019-01-23 20:20:38
【问题描述】:
有没有办法编写一个 OR 查询,使用带有 field1 的术语匹配(或)使用带有 field2 的术语匹配...... 收到消息“[terms] 查询不支持多个字段”...应该有办法:-
"constant_score":{
"filter":{
"bool":{
"should":{
"terms":{
"field1 ":[
"017M0",
"000XXJ0900"
],
"field2":[
"017M0",
"000XXJ0900"
]
}
}
}
}
}
【问题讨论】:
标签: json elasticsearch search