# Geo-query: Filter Geo-shapes/polygons using Geo-Points

**URL:** <https://discuss.elastic.co/t/geo-query-filter-geo-shapes-polygons-using-geo-points/240908>\
**Category:** Kibana\
**Created:** [July 13, 2020, 7:18am UTC](https://discuss.elastic.co/t/geo-query-filter-geo-shapes-polygons-using-geo-points/240908 "2020-07-13T07:18:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edbautista](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@edbautista](https://discuss.elastic.co/u/edbautista)\
**Post date:** [July 13, 2020, 7:18am UTC](https://discuss.elastic.co/t/geo-query-filter-geo-shapes-polygons-using-geo-points/240908/1 "2020-07-13T07:18:48Z")

</div>

Hi!  
Kibana: 7.6.2

Is it possible to filter pre indexed geoshapes using a geopoint? Specifically, we want to know if we can use the geopoints produced from our device to get the geoshapes it went to. Thanks.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 13, 2020, 4:06pm UTC](https://discuss.elastic.co/t/geo-query-filter-geo-shapes-polygons-using-geo-points/240908/2 "2020-07-13T16:06:15Z")

</div>

Yes. You can use the `geo_match` policy of the enrichment processor to assign id-fields of a pre-indexed document with a `geo_shape` field, to a document with a `geo_point` field. For documentation, see [https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-match-enrich-policy-type.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-match-enrich-policy-type.html)

If you already indexed your data, you can use the reindex-api to attach update those point-docs (cf. [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html))

---

<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:** [August 10, 2020, 4:06pm UTC](https://discuss.elastic.co/t/geo-query-filter-geo-shapes-polygons-using-geo-points/240908/3 "2020-08-10T16:06:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
