# ElasticSearch - Shape found but missing field - pre-indexed shape

**URL:** https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490
**Category:** Elasticsearch
**Created:** [June 20, 2013, 8:17am UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490 "2013-06-20T08:17:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Christian\_Hansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_hansen/32/2248_2.png) [@Christian\_Hansen](https://discuss.elastic.co/u/Christian_Hansen)
#### Post date: [June 20, 2013, 8:17am UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/1 "2013-06-20T08:17:30Z")

</div>

I am trying to filter Objects in ElasticSearch with the geo\_shape filter,  
this is my mapping for the fields:

geo: {  
6: {  
properties: {  
admin\_level\_text: {  
type: "string",  
include\_in\_all: false  
},  
location: {  
type: "geo\_shape",  
}  
}}}

but when I execute the query, I get an ElasticSearchIllegalStateException.  
But when I dump the data, the field is in the data.

Parse Failure [Failed to parse source [{ "query" :{ "filtered" :{ "query" :{ "match\_all" :{ } },"filter" :{ "geo\_shape" :{ "adresse.location" :{ "indexed\_shape" :{ "id": "kiel", "type": "6", "index": "geo", "shape\_field\_name": "location" } } } } } } }]]]; nested: ElasticSearchIllegalStateException[Shape with name [kiel] found but missing location field]; }]

Any ideas?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![chilling](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@chilling](https://discuss.elastic.co/u/chilling)
#### Post date: [June 21, 2013, 8:20am UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/2 "2013-06-21T08:20:58Z")

</div>

Hi Christian,

have you tried to change the fieldname "adresse.location" to "location"? If  
so could please provide an example of the data youre indexing? Which  
version of ES are you using?

--Florian

On Thursday, June 20, 2013 10:17:30 AM UTC+2, Christian Hansen wrote:

> I am trying to filter Objects in Elasticsearch with the geo\_shape filter,  
> this is my mapping for the fields:
> 
> geo: {  
> 6: {  
> properties: {  
> admin\_level\_text: {  
> type: "string",  
> include\_in\_all: false  
> },  
> location: {  
> type: "geo\_shape",  
> }  
> }}}
> 
> but when I execute the query, I get an ElasticSearchIllegalStateException.  
> But when I dump the data, the field is in the data.
> 
> Parse Failure [Failed to parse source [{ "query" :{ "filtered" :{ "query" :{ "match\_all" :{ } },"filter" :{ "geo\_shape" :{ "adresse.location" :{ "indexed\_shape" :{ "id": "kiel", "type": "6", "index": "geo", "shape\_field\_name": "location" } } } } } } }]]]; nested: ElasticSearchIllegalStateException[Shape with name [kiel] found but missing location field]; }]
> 
> Any ideas?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Christian\_Hansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_hansen/32/2248_2.png) [@Christian\_Hansen](https://discuss.elastic.co/u/Christian_Hansen)
#### Post date: [June 21, 2013, 10:36am UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/3 "2013-06-21T10:36:36Z")

</div>

Hi Florian,

I am using es 0.90.1. I wrote the same shape in location AS in  
adresse.location as you mentioned, same problem.

If I change the "shape\_field\_name" parameter to test the errors changes:

ElasticSearchIllegalStateException[Shape with name [kiel] found but missing test field];

Maybe the problem ist within my pre-indexed shape. but elastic throws no  
errors when indexing my polygon as geo\_shape.

Here is a gist of the pre-indexed shape-data:

> <https://gist.github.com/anonymous/e7e517fa0a2ec8db3ddc>

And here one of the complete mapping:

> <https://gist.github.com/anonymous/30498f6aaa823f8b5ae1>

thanks for your help 🙂

Am Freitag, 21. Juni 2013 10:20:58 UTC+2 schrieb Florian Schilling:

> Hi Christian,
> 
> have you tried to change the fieldname "adresse.location" to "location"?  
> If so could please provide an example of the data youre indexing? Which  
> version of ES are you using?
> 
> --Florian
> 
> On Thursday, June 20, 2013 10:17:30 AM UTC+2, Christian Hansen wrote:
> 
> > I am trying to filter Objects in Elasticsearch with the geo\_shape filter,  
> > this is my mapping for the fields:
> > 
> > geo: {  
> > 6: {  
> > properties: {  
> > admin\_level\_text: {  
> > type: "string",  
> > include\_in\_all: false  
> > },  
> > location: {  
> > type: "geo\_shape",  
> > }  
> > }}}
> > 
> > but when I execute the query, I get an  
> > ElasticSearchIllegalStateException. But when I dump the data, the field is  
> > in the data.
> > 
> > Parse Failure [Failed to parse source [{ "query" :{ "filtered" :{ "query" :{ "match\_all" :{ } },"filter" :{ "geo\_shape" :{ "adresse.location" :{ "indexed\_shape" :{ "id": "kiel", "type": "6", "index": "geo", "shape\_field\_name": "location" } } } } } } }]]]; nested: ElasticSearchIllegalStateException[Shape with name [kiel] found but missing location field]; }]
> > 
> > Any ideas?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![chilling](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@chilling](https://discuss.elastic.co/u/chilling)
#### Post date: [June 21, 2013, 2:53pm UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/4 "2013-06-21T14:53:54Z")

</div>

Hi Christian,

I'm working on your issue. So far I reconized, if the location field is the  
first field in your data it works but I need to look a little deeper into  
the things.

--Florian

On Friday, June 21, 2013 12:36:36 PM UTC+2, Christian Hansen wrote:

> Hi Florian,
> 
> I am using es 0.90.1. I wrote the same shape in location AS in  
> adresse.location as you mentioned, same problem.
> 
> If I change the "shape\_field\_name" parameter to test the errors changes:
> 
> ElasticSearchIllegalStateException[Shape with name [kiel] found but missing test field];
> 
> Maybe the problem ist within my pre-indexed shape. but elastic throws no  
> errors when indexing my polygon as geo\_shape.
> 
> Here is a gist of the pre-indexed shape-data:  
> [gist:e7e517fa0a2ec8db3ddc · GitHub](https://gist.github.com/anonymous/e7e517fa0a2ec8db3ddc)
> 
> And here one of the complete mapping:  
> [gist:30498f6aaa823f8b5ae1 · GitHub](https://gist.github.com/anonymous/30498f6aaa823f8b5ae1)
> 
> thanks for your help 🙂
> 
> Am Freitag, 21. Juni 2013 10:20:58 UTC+2 schrieb Florian Schilling:
> 
> > Hi Christian,
> > 
> > have you tried to change the fieldname "adresse.location" to "location"?  
> > If so could please provide an example of the data youre indexing? Which  
> > version of ES are you using?
> > 
> > --Florian
> > 
> > On Thursday, June 20, 2013 10:17:30 AM UTC+2, Christian Hansen wrote:
> > 
> > > I am trying to filter Objects in Elasticsearch with the geo\_shape  
> > > filter, this is my mapping for the fields:
> > > 
> > > geo: {  
> > > 6: {  
> > > properties: {  
> > > admin\_level\_text: {  
> > > type: "string",  
> > > include\_in\_all: false  
> > > },  
> > > location: {  
> > > type: "geo\_shape",  
> > > }  
> > > }}}
> > > 
> > > but when I execute the query, I get an  
> > > ElasticSearchIllegalStateException. But when I dump the data, the field is  
> > > in the data.
> > > 
> > > Parse Failure [Failed to parse source [{ "query" :{ "filtered" :{ "query" :{ "match\_all" :{ } },"filter" :{ "geo\_shape" :{ "adresse.location" :{ "indexed\_shape" :{ "id": "kiel", "type": "6", "index": "geo", "shape\_field\_name": "location" } } } } } } }]]]; nested: ElasticSearchIllegalStateException[Shape with name [kiel] found but missing location field]; }]
> > > 
> > > Any ideas?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Christian\_Hansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_hansen/32/2248_2.png) [@Christian\_Hansen](https://discuss.elastic.co/u/Christian_Hansen)
#### Post date: [June 24, 2013, 1:17pm UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/5 "2013-06-24T13:17:11Z")

</div>

Hi Florian,

thx for your fast help.

i switched the location field to the beginning and it works as far as no  
exception is thrown and the shape seems to be loaded. Now I have another  
issue:

when i search for locations in the index where to search there are no  
results referring the indexed shape. The loaction field is a geo\_shape with  
type point:

{  
"query": {  
"filtered": {  
"query": {  
"match\_all": {}  
},  
"filter": {  
"geo\_shape": {  
"location": {  
"indexed\_shape": {  
"id": "hamburg",  
"type": "4",  
"index": "geo",  
"shape\_field\_name": "location"  
}  
}  
}  
}  
}  
}  
}

and this is the answer:

{  
"took": 23,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 0,  
"max\_score": null,  
"hits":   
}  
}

Am Freitag, 21. Juni 2013 16:53:54 UTC+2 schrieb Florian Schilling:

> Hi Christian,
> 
> I'm working on your issue. So far I reconized, if the location field is  
> the first field in your data it works but I need to look a little deeper  
> into the things.
> 
> --Florian
> 
> On Friday, June 21, 2013 12:36:36 PM UTC+2, Christian Hansen wrote:
> 
> > Hi Florian,
> > 
> > I am using es 0.90.1. I wrote the same shape in location AS in  
> > adresse.location as you mentioned, same problem.
> > 
> > If I change the "shape\_field\_name" parameter to test the errors changes:
> > 
> > ElasticSearchIllegalStateException[Shape with name [kiel] found but missing test field];
> > 
> > Maybe the problem ist within my pre-indexed shape. but elastic throws no  
> > errors when indexing my polygon as geo\_shape.
> > 
> > Here is a gist of the pre-indexed shape-data:  
> > [gist:e7e517fa0a2ec8db3ddc · GitHub](https://gist.github.com/anonymous/e7e517fa0a2ec8db3ddc)
> > 
> > And here one of the complete mapping:  
> > [gist:30498f6aaa823f8b5ae1 · GitHub](https://gist.github.com/anonymous/30498f6aaa823f8b5ae1)
> > 
> > thanks for your help 🙂
> > 
> > Am Freitag, 21. Juni 2013 10:20:58 UTC+2 schrieb Florian Schilling:
> > 
> > > Hi Christian,
> > > 
> > > have you tried to change the fieldname "adresse.location" to "location"?  
> > > If so could please provide an example of the data youre indexing? Which  
> > > version of ES are you using?
> > > 
> > > --Florian
> > > 
> > > On Thursday, June 20, 2013 10:17:30 AM UTC+2, Christian Hansen wrote:
> > > 
> > > > I am trying to filter Objects in Elasticsearch with the geo\_shape  
> > > > filter, this is my mapping for the fields:
> > > > 
> > > > geo: {  
> > > > 6: {  
> > > > properties: {  
> > > > admin\_level\_text: {  
> > > > type: "string",  
> > > > include\_in\_all: false  
> > > > },  
> > > > location: {  
> > > > type: "geo\_shape",  
> > > > }  
> > > > }}}
> > > > 
> > > > but when I execute the query, I get an  
> > > > ElasticSearchIllegalStateException. But when I dump the data, the field is  
> > > > in the data.
> > > > 
> > > > Parse Failure [Failed to parse source [{ "query" :{ "filtered" :{ "query" :{ "match\_all" :{ } },"filter" :{ "geo\_shape" :{ "adresse.location" :{ "indexed\_shape" :{ "id": "kiel", "type": "6", "index": "geo", "shape\_field\_name": "location" } } } } } } }]]]; nested: ElasticSearchIllegalStateException[Shape with name [kiel] found but missing location field]; }]
> > > > 
> > > > Any ideas?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![chilling](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@chilling](https://discuss.elastic.co/u/chilling)
#### Post date: [June 26, 2013, 10:25am UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/6 "2013-06-26T10:25:45Z")

</div>

Hi Christian,

it took me a while but I found the issue in the first place. The parsing of  
indexed shapes searches the wrong fields. I opened an issue on github:

> <https://github.com/elastic/elasticsearch/issues/3242>
>
> The \`geo\_shape\` filter seems to be unable to handle multiple \`geo\_shape\` fields …in a single document if this document is used as indexed filter.
> 
> Assume a mapping with multiple \`geo\_shape\` fields:
> 
> \`\`\`
> {
> "type1" : {
> "properties" : {
> "location1" : {
> "type" : "geo\_shape"
> },
> "location2" : {
> "type" : "geo\_shape"
> }
> }
> }
> }
> \`\`\`
> 
> and a document
> 
> \`\`\`
> {
> "location1" : {
> "type":"polygon",
> "coordinates":\[\[\[-10,-10\],\[10,-10\],\[10,10\],\[-10,10\],\[-10,-10\]\]\]
> },
> "location2" : {
> "type":"polygon",
> "coordinates":\[\[\[-20,-20\],\[20,-20\],\[20,20\],\[-20,20\],\[-20,-20\]\]\]
> }
> }
> \`\`\`
> 
> If a \`geo\_shape\` filter is applied to the \`location2\` field
> 
> \`\`\`
> {
> "geo\_shape": {
> "location2": {
> "indexed\_shape": { 
> "id": "1",
> "type": "type1",
> "index": "test",
> "shape\_field\_name": "location2"
> }
> }
> }
> }
> \`\`\`
> 
> parsing fails with
> 
> \`\`\`
> ElasticSearchIllegalStateException\[Shape with name \[1\] found but missing location2 field\];
> \`\`\`

--Florian

On Monday, June 24, 2013 3:17:11 PM UTC+2, Christian Hansen wrote:

> Hi Florian,
> 
> thx for your fast help.
> 
> i switched the location field to the beginning and it works as far as no  
> exception is thrown and the shape seems to be loaded. Now I have another  
> issue:
> 
> when i search for locations in the index where to search there are no  
> results referring the indexed shape. The loaction field is a geo\_shape with  
> type point:
> 
> {  
> "query": {  
> "filtered": {  
> "query": {  
> "match\_all": {}  
> },  
> "filter": {  
> "geo\_shape": {  
> "location": {  
> "indexed\_shape": {  
> "id": "hamburg",  
> "type": "4",  
> "index": "geo",  
> "shape\_field\_name": "location"  
> }  
> }  
> }  
> }  
> }  
> }  
> }
> 
> and this is the answer:
> 
> {  
> "took": 23,  
> "timed\_out": false,  
> "\_shards": {  
> "total": 5,  
> "successful": 5,  
> "failed": 0  
> },  
> "hits": {  
> "total": 0,  
> "max\_score": null,  
> "hits":   
> }  
> }
> 
> Am Freitag, 21. Juni 2013 16:53:54 UTC+2 schrieb Florian Schilling:
> 
> > Hi Christian,
> > 
> > I'm working on your issue. So far I reconized, if the location field is  
> > the first field in your data it works but I need to look a little deeper  
> > into the things.
> > 
> > --Florian
> > 
> > On Friday, June 21, 2013 12:36:36 PM UTC+2, Christian Hansen wrote:
> > 
> > > Hi Florian,
> > > 
> > > I am using es 0.90.1. I wrote the same shape in location AS in  
> > > adresse.location as you mentioned, same problem.
> > > 
> > > If I change the "shape\_field\_name" parameter to test the errors changes:
> > > 
> > > ElasticSearchIllegalStateException[Shape with name [kiel] found but missing test field];
> > > 
> > > Maybe the problem ist within my pre-indexed shape. but elastic throws no  
> > > errors when indexing my polygon as geo\_shape.
> > > 
> > > Here is a gist of the pre-indexed shape-data:  
> > > [gist:e7e517fa0a2ec8db3ddc · GitHub](https://gist.github.com/anonymous/e7e517fa0a2ec8db3ddc)
> > > 
> > > And here one of the complete mapping:  
> > > [gist:30498f6aaa823f8b5ae1 · GitHub](https://gist.github.com/anonymous/30498f6aaa823f8b5ae1)
> > > 
> > > thanks for your help 🙂
> > > 
> > > Am Freitag, 21. Juni 2013 10:20:58 UTC+2 schrieb Florian Schilling:
> > > 
> > > > Hi Christian,
> > > > 
> > > > have you tried to change the fieldname "adresse.location" to  
> > > > "location"? If so could please provide an example of the data youre  
> > > > indexing? Which version of ES are you using?
> > > > 
> > > > --Florian
> > > > 
> > > > On Thursday, June 20, 2013 10:17:30 AM UTC+2, Christian Hansen wrote:
> > > > 
> > > > > I am trying to filter Objects in Elasticsearch with the geo\_shape  
> > > > > filter, this is my mapping for the fields:
> > > > > 
> > > > > geo: {  
> > > > > 6: {  
> > > > > properties: {  
> > > > > admin\_level\_text: {  
> > > > > type: "string",  
> > > > > include\_in\_all: false  
> > > > > },  
> > > > > location: {  
> > > > > type: "geo\_shape",  
> > > > > }  
> > > > > }}}
> > > > > 
> > > > > but when I execute the query, I get an  
> > > > > ElasticSearchIllegalStateException. But when I dump the data, the field is  
> > > > > in the data.
> > > > > 
> > > > > Parse Failure [Failed to parse source [{ "query" :{ "filtered" :{ "query" :{ "match\_all" :{ } },"filter" :{ "geo\_shape" :{ "adresse.location" :{ "indexed\_shape" :{ "id": "kiel", "type": "6", "index": "geo", "shape\_field\_name": "location" } } } } } } }]]]; nested: ElasticSearchIllegalStateException[Shape with name [kiel] found but missing location field]; }]
> > > > > 
> > > > > Any ideas?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Christian\_Hansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_hansen/32/2248_2.png) [@Christian\_Hansen](https://discuss.elastic.co/u/Christian_Hansen)
#### Post date: [June 26, 2013, 12:43pm UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/7 "2013-06-26T12:43:26Z")

</div>

I got it. Really bad mistake of mine... I switched lon and lat.

Am Montag, 24. Juni 2013 15:17:11 UTC+2 schrieb Christian Hansen:

> Hi Florian,
> 
> thx for your fast help.
> 
> i switched the location field to the beginning and it works as far as no  
> exception is thrown and the shape seems to be loaded. Now I have another  
> issue:
> 
> when i search for locations in the index where to search there are no  
> results referring the indexed shape. The loaction field is a geo\_shape with  
> type point:
> 
> {  
> "query": {  
> "filtered": {  
> "query": {  
> "match\_all": {}  
> },  
> "filter": {  
> "geo\_shape": {  
> "location": {  
> "indexed\_shape": {  
> "id": "hamburg",  
> "type": "4",  
> "index": "geo",  
> "shape\_field\_name": "location"  
> }  
> }  
> }  
> }  
> }  
> }  
> }
> 
> and this is the answer:
> 
> {  
> "took": 23,  
> "timed\_out": false,  
> "\_shards": {  
> "total": 5,  
> "successful": 5,  
> "failed": 0  
> },  
> "hits": {  
> "total": 0,  
> "max\_score": null,  
> "hits":   
> }  
> }
> 
> Am Freitag, 21. Juni 2013 16:53:54 UTC+2 schrieb Florian Schilling:
> 
> > Hi Christian,
> > 
> > I'm working on your issue. So far I reconized, if the location field is  
> > the first field in your data it works but I need to look a little deeper  
> > into the things.
> > 
> > --Florian
> > 
> > On Friday, June 21, 2013 12:36:36 PM UTC+2, Christian Hansen wrote:
> > 
> > > Hi Florian,
> > > 
> > > I am using es 0.90.1. I wrote the same shape in location AS in  
> > > adresse.location as you mentioned, same problem.
> > > 
> > > If I change the "shape\_field\_name" parameter to test the errors changes:
> > > 
> > > ElasticSearchIllegalStateException[Shape with name [kiel] found but missing test field];
> > > 
> > > Maybe the problem ist within my pre-indexed shape. but elastic throws no  
> > > errors when indexing my polygon as geo\_shape.
> > > 
> > > Here is a gist of the pre-indexed shape-data:  
> > > [gist:e7e517fa0a2ec8db3ddc · GitHub](https://gist.github.com/anonymous/e7e517fa0a2ec8db3ddc)
> > > 
> > > And here one of the complete mapping:  
> > > [gist:30498f6aaa823f8b5ae1 · GitHub](https://gist.github.com/anonymous/30498f6aaa823f8b5ae1)
> > > 
> > > thanks for your help 🙂
> > > 
> > > Am Freitag, 21. Juni 2013 10:20:58 UTC+2 schrieb Florian Schilling:
> > > 
> > > > Hi Christian,
> > > > 
> > > > have you tried to change the fieldname "adresse.location" to  
> > > > "location"? If so could please provide an example of the data youre  
> > > > indexing? Which version of ES are you using?
> > > > 
> > > > --Florian
> > > > 
> > > > On Thursday, June 20, 2013 10:17:30 AM UTC+2, Christian Hansen wrote:
> > > > 
> > > > > I am trying to filter Objects in Elasticsearch with the geo\_shape  
> > > > > filter, this is my mapping for the fields:
> > > > > 
> > > > > geo: {  
> > > > > 6: {  
> > > > > properties: {  
> > > > > admin\_level\_text: {  
> > > > > type: "string",  
> > > > > include\_in\_all: false  
> > > > > },  
> > > > > location: {  
> > > > > type: "geo\_shape",  
> > > > > }  
> > > > > }}}
> > > > > 
> > > > > but when I execute the query, I get an  
> > > > > ElasticSearchIllegalStateException. But when I dump the data, the field is  
> > > > > in the data.
> > > > > 
> > > > > Parse Failure [Failed to parse source [{ "query" :{ "filtered" :{ "query" :{ "match\_all" :{ } },"filter" :{ "geo\_shape" :{ "adresse.location" :{ "indexed\_shape" :{ "id": "kiel", "type": "6", "index": "geo", "shape\_field\_name": "location" } } } } } } }]]]; nested: ElasticSearchIllegalStateException[Shape with name [kiel] found but missing location field]; }]
> > > > > 
> > > > > Any ideas?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:29am UTC](https://discuss.elastic.co/t/elasticsearch-shape-found-but-missing-field-pre-indexed-shape/12490/8 "2017-07-06T02:29:23Z")

</div>


