我有一个查询:
{
"query": {
"bool" : {
"must": [
{ "match": { "tags": "htc" } },
{ "match": { "votype" : 1} },
{ "match": { "subtype": 1 } },
{ "match": { "deleted": 0 } },
{ "match": { "build_status": 4 } },
{ "match": { "publish": 1 } }
]
}
},
"sort": [
{ "created": "desc" }
],
"size": 30,
"from": 0
}
我想放入值的值列表中
{ "match": { "votype": [1 or 2 or 3] } }
SQL 类比:
SELECT * FROM tablename WHERE type IN(1, 2);
但不知道怎么做
不工作:
{ "match": { "votype": [1,3] } },
{ "match": { "votype": "1 2" } },
{ "match": { "votype": "1OR2" } }