# Use different spatial mapping together

**URL:** <https://discuss.elastic.co/t/use-different-spatial-mapping-together/34106>\
**Category:** Elasticsearch\
**Created:** [November 8, 2015, 12:56pm UTC](https://discuss.elastic.co/t/use-different-spatial-mapping-together/34106 "2015-11-08T12:56:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkmaven](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kkmaven](https://discuss.elastic.co/u/kkmaven)\
**Post date:** [November 8, 2015, 12:56pm UTC](https://discuss.elastic.co/t/use-different-spatial-mapping-together/34106/1 "2015-11-08T12:56:57Z")

</div>

Hi:

In my application, we have some spatial data like `point`, `multiple point` ,`poyline`, `polyogn`s and etc which require to be searched. Generally most of the spatial data are points, the origin data are saved in the postgresql with the postgis plugin.

Now we need this kind of spatial filter:find features inside (intersects with )a `bounding box`,`polyogn`,`circle`, in most cases, we need to find points inside a box or a circle, intersects operation is rare used(but we need them sometime).

And I am new in elasticsearch,and I just read the documents, there are two mapping under my conserdition:the `geo_point` and `geo_shape`, `geohash` is excluded since we do not think it fit for the complex feature shape.

However as the document said `geo_point` may provide a better performance if we can use index the `lat` and `lon` separated.

Now I wonder if we can use the `geo_point` to index the points, and the `geo_shape` to index the `polygon` and `polyline` and then search them all together?

---

<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:39pm UTC](https://discuss.elastic.co/t/use-different-spatial-mapping-together/34106/2 "2017-07-05T23:39:57Z")

</div>


