I am trying to build on this query a little bit. The index I am searching also has a field \"entity\" with an id. So a few records will have \"entity\" : 16, \"entity\" 156 etc,
Use "terms" instead of "term".
"terms"
"term"
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html
{ "terms" : { "entity" : [ 123, 1234, ... ] }}