В MySQL мы можем сделать запрос как: select * from table1 where (name,age) in (('joe',11),('jim',15));
select * from table1 where (name,age) in (('joe',11),('jim',15));
Как мне этого добиться в Elasticsearch?
Вам нужно сочетать с обязательным bools.
Подробнее здесь https://www.elastic.co/blog/lost-in-translation-boolean-operations-and-filters-in-the-bool-query
{ "query": { "bool": { "should": [{ "bool": { "must": [{ "match": { "name": "joe" } }, { "match": { "age": "11" } }] } }, { "bool": { "must": [{ "match": { "name": "jim" } }, { "match": { "age": "15" } }] } }] } }
}