# Whats difference org.elasticsearch.index.mapper.GeoPointFieldMapper and org.elasticsearch.xpack.ml.extractor.GeoPointField

**URL:** <https://discuss.elastic.co/t/whats-difference-org-elasticsearch-index-mapper-geopointfieldmapper-and-org-elasticsearch-xpack-ml-extractor-geopointfield/280042>\
**Category:** Elasticsearch\
**Created:** [July 30, 2021, 7:27am UTC](https://discuss.elastic.co/t/whats-difference-org-elasticsearch-index-mapper-geopointfieldmapper-and-org-elasticsearch-xpack-ml-extractor-geopointfield/280042 "2021-07-30T07:27:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drake-jin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drake-jin/32/45472_2.png) [@drake-jin](https://discuss.elastic.co/u/drake-jin)\
**Post date:** [July 30, 2021, 7:27am UTC](https://discuss.elastic.co/t/whats-difference-org-elasticsearch-index-mapper-geopointfieldmapper-and-org-elasticsearch-xpack-ml-extractor-geopointfield/280042/1 "2021-07-30T07:27:26Z")

</div>

I wonder why same role classes are here in elasticsearch repository.

What `org.elasticsearch.xpack.ml.extractor.GeoPointField` is for?  
What `org.elasticsearch.index.mapper.GeoPointFieldMapper` is for?

Any documents?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 2, 2021, 7:50am UTC](https://discuss.elastic.co/t/whats-difference-org-elasticsearch-index-mapper-geopointfieldmapper-and-org-elasticsearch-xpack-ml-extractor-geopointfield/280042/2 "2021-08-02T07:50:36Z")

</div>

The mapper class is used when a document with a geo point field is indexed or searched (a little bit simplified, but true at its core), where as the `ml` class is used data feeds in order to extract geo points from the data.

Hope this helps!

---

<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 30, 2021, 7:50am UTC](https://discuss.elastic.co/t/whats-difference-org-elasticsearch-index-mapper-geopointfieldmapper-and-org-elasticsearch-xpack-ml-extractor-geopointfield/280042/3 "2021-08-30T07:50:44Z")

</div>

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