From 797b10bac405ed3b10e906de8540ceaa9a5b6e08 Mon Sep 17 00:00:00 2001
From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io>
Date: Tue, 7 Jul 2015 12:31:23 +0300
Subject: [PATCH] Add additional example to geo bounding box filter doc.

---
 docs/Filter/GeoBoundingBox.md | 40 +++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/docs/Filter/GeoBoundingBox.md b/docs/Filter/GeoBoundingBox.md
index 9a2e117..2d3e23e 100644
--- a/docs/Filter/GeoBoundingBox.md
+++ b/docs/Filter/GeoBoundingBox.md
@@ -47,4 +47,44 @@ $search->addFilter($geoBoundingBoxFilter);
 $queryArray = $search->toArray();
 ```
 
+Other format
+
+```JSON
+"filtered" : {
+    "query" : {
+        "match_all" : {}
+    },
+    "filter" : {
+        "geo_bounding_box" : {
+            "pin.location" : {
+                "top" : -74.1,
+                "left" : 40.73,
+                "bottom" : -71.12,
+                "right" : 40.01
+            }
+        }
+    }
+}
+```
+
+In DSL
+
+```php
+$geoBoundingBoxFilter = new GeoBoundingBoxFilter(
+    'pin.location',
+    [
+        -74.1,
+        40.73,
+        -71.12,
+        40.01,
+    ]
+);
+
+$search = new Search();
+$search->addFilter($geoBoundingBoxFilter);
+
+$queryArray = $search->toArray();
+```
+
+
 [1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-filter.html
-- 
GitLab