From 96013154ab32bcef1217979a86d7a4f046f95e1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simonas=20=C5=A0erlinskas?= <simonas.serlinskas@nfq.com>
Date: Wed, 1 Jul 2015 15:33:52 +0300
Subject: [PATCH] moved some code parts to how to search chapter

---
 docs/Query/index.md | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/docs/Query/index.md b/docs/Query/index.md
index a2d4d91..0fcf40f 100644
--- a/docs/Query/index.md
+++ b/docs/Query/index.md
@@ -11,6 +11,10 @@ $search->addQuery($matchAllQuery);
 $queryArray = $search->toArray();
 ```
 
+Query handles are necessary little things like where to put `\stdClass` and where to simple array. So by using DSL builder you can be always sure that it will form a correct query.
+
+Here's `$queryArray` var_dump:
+
 ```php
 //$queryArray content
 'query' =>
@@ -19,21 +23,7 @@ $queryArray = $search->toArray();
     ]
 ```
 
-So now you can easily pass it to the elasticsearch-php client:
-
-```php
-//from elasticsearch/elasticsearch package
-$client = new Elasticsearch\Client();
-
-$searchParams = [
-  'index' => 'people',
-  'type' => 'person',
-  'body' => $queryArray
-];
-
-$docs = $client->search($searchParams);
-```
-> This example works with elasticsearch/elasticsearch ~1.0 version.
+For more information how to combine search queries take a look at [How to search](../HowTo/HowToSearch.md) chapter.
 
 
 ## Queries:
-- 
GitLab