# Elastic Java Client: Problem with GeoPointProperty - unknown field 'index'

**URL:** <https://discuss.elastic.co/t/elastic-java-client-problem-with-geopointproperty-unknown-field-index/313799>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [September 6, 2022, 1:25pm UTC](https://discuss.elastic.co/t/elastic-java-client-problem-with-geopointproperty-unknown-field-index/313799 "2022-09-06T13:25:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodingMax](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@CodingMax](https://discuss.elastic.co/u/CodingMax)\
**Post date:** [September 6, 2022, 1:25pm UTC](https://discuss.elastic.co/t/elastic-java-client-problem-with-geopointproperty-unknown-field-index/313799/1 "2022-09-06T13:25:52Z")

</div>

Hi,  
according the [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html) I can use the parameter **index** for the field-type _geo\_point_.  
I use the Java-Client in Version 8.3.3 and a mapping like this (only a snippet):

```auto
"location": {
  "type": "geo_point",
  "index": false
}

```

But the result is the following exception:

```auto
co.elastic.clients.json.JsonpMappingException: Error deserializing
co.elastic.clients.elasticsearch._types.mapping.GeoPointProperty: Unknown field 'index'

```

However, when I look at the class [GeoPointProperty](https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/8.4.0/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.html), I don't see an index field either (I looked also in the source-code). It seems to me that this field has been forgotten. Does anyone have an idea? This looks like a bug to me.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 6, 2022, 2:51pm UTC](https://discuss.elastic.co/t/elastic-java-client-problem-with-geopointproperty-unknown-field-index/313799/2 "2022-09-06T14:51:50Z")

</div>

Yeah. I'd open an issue for this. cc @swallez

Thanks for sharing it.

---

<div class="post-metadata">

**Author:** ![CodingMax](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@CodingMax](https://discuss.elastic.co/u/CodingMax)\
**Post date:** [September 6, 2022, 3:36pm UTC](https://discuss.elastic.co/t/elastic-java-client-problem-with-geopointproperty-unknown-field-index/313799/3 "2022-09-06T15:36:25Z")

</div>

Ok, I will open a ticket. Thx!  
You can find it here: [Issue-394](https://github.com/elastic/elasticsearch-java/issues/394)

---

<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:** [October 4, 2022, 3:36pm UTC](https://discuss.elastic.co/t/elastic-java-client-problem-with-geopointproperty-unknown-field-index/313799/4 "2022-10-04T15:36:59Z")

</div>

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