# Error handling geopoint values

**URL:** https://discuss.elastic.co/t/error-handling-geopoint-values/279337
**Category:** Elasticsearch
**Created:** [July 22, 2021, 4:40am UTC](https://discuss.elastic.co/t/error-handling-geopoint-values/279337 "2021-07-22T04:40:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)
#### Post date: [July 22, 2021, 4:40am UTC](https://discuss.elastic.co/t/error-handling-geopoint-values/279337/1 "2021-07-22T04:40:48Z")

</div>

Hi all

For geopoint fields,

1. is ignore\_malformed option the proper way to keep non-geopoint formats not indexed? My concern is whether there is any performance impact if my data has a lot of null and out of range latlon values

2. Is there a standard practice to error handle these non-geopoint values?

Any help is appreciated. thanks!

---

<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: [July 22, 2021, 3:05pm UTC](https://discuss.elastic.co/t/error-handling-geopoint-values/279337/2 "2021-07-22T15:05:39Z")

</div>

Side note: if `ignore_malformed` is used, then a parsing exception of that field will not return an error, but the field is simply not indexed.

The main question is, are your document values malformed that they throw an exception? Or are the values just bad, so it would return weird results?

---

<div class="post-metadata">

### Author: ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)
#### Post date: [July 23, 2021, 1:30am UTC](https://discuss.elastic.co/t/error-handling-geopoint-values/279337/3 "2021-07-23T01:30:03Z")

</div>

Because there might not be any geopoint for some records, so "null" is possible. When ingesting null, there will be exception. Using ignore\_malformed option might have subside the issue but my concern is whether there will be any performance issue behind the scene

---

<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: [July 23, 2021, 7:53am UTC](https://discuss.elastic.co/t/error-handling-geopoint-values/279337/4 "2021-07-23T07:53:06Z")

</div>

No, there are not.

---

<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 20, 2021, 7:53am UTC](https://discuss.elastic.co/t/error-handling-geopoint-values/279337/5 "2021-08-20T07:53:38Z")

</div>

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