From 79b9e59aea069e93fd70faae2a128d951138ee5c Mon Sep 17 00:00:00 2001
From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io>
Date: Fri, 3 Jul 2015 14:11:43 +0300
Subject: [PATCH] Add query string query doc.

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

diff --git a/docs/Query/QueryString.md b/docs/Query/QueryString.md
new file mode 100644
index 0000000..79f4538
--- /dev/null
+++ b/docs/Query/QueryString.md
@@ -0,0 +1,30 @@
+# Query String Query
+
+> More info about query string query is in the [official elasticsearch docs][1]
+
+A query that uses a query parser in order to parse its content.
+
+## Simple example
+
+```JSON
+{
+    "query_string" : {
+        "default_field" : "content",
+        "query" : "this AND that OR thus"
+    }
+}
+```
+
+In DSL:
+
+```php
+$queryStringQuery = new QueryStringQuery('this AND that OR thus');
+$queryStringQuery->addParameter('default_field', 'content');
+
+$search = new Search();
+$search->addQuery($queryStringQuery);
+
+$queryArray = $search->toArray();
+```
+
+[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
-- 
GitLab