From d6a43c373a6628809d6e6f8d7495ea4335172370 Mon Sep 17 00:00:00 2001
From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io>
Date: Fri, 3 Jul 2015 14:23:01 +0300
Subject: [PATCH] Add terms query doc.

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

diff --git a/docs/Query/Terms.md b/docs/Query/Terms.md
new file mode 100644
index 0000000..e38e6ac
--- /dev/null
+++ b/docs/Query/Terms.md
@@ -0,0 +1,33 @@
+# Terms Query
+
+> More info about terms query is in the [official elasticsearch docs][1]
+
+A query that match on any of the provided terms.
+
+## Simple example
+
+```JSON
+{
+    "terms" : {
+        "tags" : [ "blue", "pill" ],
+        "minimum_should_match" : 1
+    }
+}
+```
+
+In DSL:
+
+```php
+$termsQuery = new TermsQuery(
+    'tags',
+    ['blue', 'pill'],
+    ['minimum_should_match' => 1]
+);
+
+$search = new Search();
+$search->addQuery($termsQuery);
+
+$queryArray = $search->toArray();
+```
+
+[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html
-- 
GitLab