Terms Query

More info about terms query is in the official elasticsearch docs

A query that match on any of the provided terms.

Simple example

{
    "terms" : {
        "tags" : [ "blue", "pill" ],
        "minimum_should_match" : 1
    }
}

In DSL:

$termsQuery = new TermsQuery(
    'tags',
    ['blue', 'pill'],
    ['minimum_should_match' => 1]
);

$search = new Search();
$search->addQuery($termsQuery);

$queryArray = $search->toArray();