I have a query:
{
"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
}
and i want put into value list of values
{ "match": { "votype": [1 or 2 or 3] } }
SQL analog:
SELECT * FROM tablename WHERE type IN(1, 2);
but don `t know how to
don’t work:
{ "match": { "votype": [1,3] } },
{ "match": { "votype": "1 2" } },
{ "match": { "votype": "1OR2" } }
my solution