From b19fc25b1379b6c68305146cb7ecab09f05c0a58 Mon Sep 17 00:00:00 2001
From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io>
Date: Thu, 2 Jul 2015 13:22:59 +0300
Subject: [PATCH] Add multi match query doc.

---
 docs/Query/MultiMatch.md | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 docs/Query/MultiMatch.md

diff --git a/docs/Query/MultiMatch.md b/docs/Query/MultiMatch.md
new file mode 100644
index 0000000..c9905ec
--- /dev/null
+++ b/docs/Query/MultiMatch.md
@@ -0,0 +1,33 @@
+# Multi Match Query
+
+> More info about multi match query is in the [official elasticsearch docs][1]
+
+The multi match query builds on the [match][2] query to allow multi-field queries:
+
+## Simple example
+
+```JSON
+{
+  "multi_match" : {
+    "query":    "this is a test", 
+    "fields": [ "subject", "message" ] 
+  }
+}
+```
+
+In DSL:
+
+```php
+$multiMatchQuery = new MultiMatchQuery(
+    ['subject', 'message'],
+    'this is a test'
+);
+
+$search = new Search();
+$search->addQuery($multiMatchQuery);
+
+$queryArray = $search->toArray();
+```
+
+[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html
+[2]: Match.md
-- 
GitLab