From 5c9d15e3385095ecd87dcf42eb6e5afa1ad7e1dd Mon Sep 17 00:00:00 2001
From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io>
Date: Fri, 3 Jul 2015 14:20:09 +0300
Subject: [PATCH] Add term query doc.

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

diff --git a/docs/Query/Term.md b/docs/Query/Term.md
new file mode 100644
index 0000000..a71ceb1
--- /dev/null
+++ b/docs/Query/Term.md
@@ -0,0 +1,27 @@
+# Term Query
+
+> More info about term query is in the [official elasticsearch docs][1]
+
+The term query finds documents that contain the exact term specified in the inverted index.
+
+
+## Simple example
+
+```JSON
+{
+    "term" : { "user" : "Kimchy" } 
+}
+```
+
+In DSL:
+
+```php
+$termQuery = new TermQuery('user', 'Kimchy');
+
+$search = new Search();
+$search->addQuery($termQuery);
+
+$queryArray = $search->toArray();
+```
+
+[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html
-- 
GitLab