Skip to content
Snippets Groups Projects
Commit a35455bb authored by Aivaras Gotovskis's avatar Aivaras Gotovskis
Browse files

Add match query doc.

parent 8c994863
No related branches found
No related tags found
No related merge requests found
# Match Query
> More info about match query is in the [official elasticsearch docs][1]
A family of match queries that accept text/numerics/dates, analyzes it, and constructs a query out of it.
## Simple example
```JSON
{
"match" : {
"message" : "this is a test"
}
}
```
In DSL:
```php
$matchQuery = new MatchQuery('message', 'this is a test');
$search = new Search();
$search->addQuery($matchQuery);
$queryArray = $search->toArray();
```
[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment