# GEO Bound Query Parsing

**URL:** https://discuss.elastic.co/t/geo-bound-query-parsing/26142
**Category:** Elasticsearch
**Created:** [July 23, 2015, 9:35am UTC](https://discuss.elastic.co/t/geo-bound-query-parsing/26142 "2015-07-23T09:35:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sivaprakash\_Shanmuga](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Sivaprakash\_Shanmuga](https://discuss.elastic.co/u/Sivaprakash_Shanmuga)
#### Post date: [July 23, 2015, 9:35am UTC](https://discuss.elastic.co/t/geo-bound-query-parsing/26142/1 "2015-07-23T09:35:41Z")

</div>

Hi

Im trying to search GEO Location along with other terms in AND condition, but the below query throws

> QueryParsingException[[myproperty] failed to find geo\_point field

> "filtered":  
> {  
> "filter":  
> {  
> "and":  
> [  
> { "terms": { "subject":["3456", "2348"] } },  
> { "terms": { "course":["2346" , "2348"]} },  
> {"geo\_bounding\_box":  
> {  
> "location":  
> {  
> "top\_right":  
> {  
> "lat": 53.5551999,  
> "lon": 7.227510199999999  
> },  
> "bottom\_left":  
> {  
> "lat": 50.75038379999999,  
> "lon": 3.357962  
> }  
> }  
> }  
> }  
> ]  
> }  
> }

My Data Format is

> {   
> "subject": "3456",

> ```
> "course": [
> "2345",
> "2346",
> "2349"
> ],
> "location": {
> "bottom_right": [
> -74.9,
> 40.23
> ],
> "top_left": [
> -74.4,
> 40.23
> ]
> }
> 
> ```
> 
> }

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 23, 2015, 9:38am UTC](https://discuss.elastic.co/t/geo-bound-query-parsing/26142/2 "2015-07-23T09:38:08Z")

</div>

What is the mapping for that field?

---

<div class="post-metadata">

### Author: ![Sivaprakash\_Shanmuga](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Sivaprakash\_Shanmuga](https://discuss.elastic.co/u/Sivaprakash_Shanmuga)
#### Post date: [July 23, 2015, 10:59am UTC](https://discuss.elastic.co/t/geo-bound-query-parsing/26142/3 "2015-07-23T10:59:54Z")

</div>

Hi

Yes, I made mistake in Mapping file, when I fix that it works fine.

Thank you..

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/geo-bound-query-parsing/26142/4 "2017-07-05T23:59:32Z")

</div>


