I have a document mapping like this:
{
"id": 1,
"some_category_ids": [1, 2, 3]
}
I would like to search documents which includes specified category_ids.
For example, when I specify in query "some_category_ids": [2, 3]
, I want to get documents which has some_category_ids 2 or 3
.
It does not work with query like this:
{
"query": {
{ "match": { "some_category_ids": [2, 3] } }
}
}
How to achieve what I want?