How to search (query or filter) on an integer array field

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?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.