Match Query

More info about match query is in the official elasticsearch docs

A family of match queries that accept text/numerics/dates, analyzes it, and constructs a query out of it.

Simple example

{
    "match" : {
        "message" : "this is a test"
    }
}

In DSL:

$matchQuery = new MatchQuery('message', 'this is a test');

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

$queryArray = $search->toArray();