# Geo\_shape search for Point in Polygon

**URL:** https://discuss.elastic.co/t/geo-shape-search-for-point-in-polygon/11007
**Category:** Elasticsearch
**Created:** [March 5, 2013, 12:04am UTC](https://discuss.elastic.co/t/geo-shape-search-for-point-in-polygon/11007 "2013-03-05T00:04:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Gail\_Long](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gail_long/32/1527_2.png) [@Gail\_Long](https://discuss.elastic.co/u/Gail_Long)
#### Post date: [March 5, 2013, 12:04am UTC](https://discuss.elastic.co/t/geo-shape-search-for-point-in-polygon/11007/1 "2013-03-05T00:04:39Z")

</div>

I've seen this topic in several places but haven't found a resolution to it  
yet.

I want to match a polygon that contains a point.

I've used searches similar to the following:

{  
"filtered": {  
"query": {  
"match": {}  
},  
"filter": {  
"geo\_shape": {  
"location": {  
"shape": {  
"type": "point",  
"coordinates": [  
[  
44.15,  
20.65  
]  
]  
},  
"relation": "contains"  
}  
}  
}  
}  
}

But have not had any luck.

Is this possible? I have the latest version of ES. If it's possible is  
there an example search somewhere?

Thanks in advance.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:48am UTC](https://discuss.elastic.co/t/geo-shape-search-for-point-in-polygon/11007/2 "2017-07-06T02:48:24Z")

</div>


