Error: NumberFormatException in GeoPointDoubleArrayIndexFieldData (0.90.3 - 0.90.5)

Hi All,

I'm using Elasticsearch for searching by Geo Point, and I am experiencing a
very weird issue. Sometimes my search works fine, but suddenly, for no
obvious reasons it starts throwing an internal Elasticsearch error:

java.lang.NumberFormatException: empty String

at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
at java.lang.Double.parseDouble(Double.java:540)
at
org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData.loadDirect(GeoPointDoubleArrayIndexFieldData.java:86)
at
org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData.loadDirect(GeoPointDoubleArrayIndexFieldData.java:41)
at
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:150)
at
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:144)
at
org.elasticsearch.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
at
org.elasticsearch.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
at
org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
at
org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
... 26 more

I am pretty much sure that my data hasn't changed, it's valid, I can search
it using other queries and filters, so it's not my data issue. The error is
intermittent, so I cannot even make a reproducible example (I wasted a few
hours for trying doing that with no success).
I am using the MongoDB river plugin to populate the Elasticsearch index and
it makes creating a curl recreation even more difficult task.
I was able to reproduce this error having one single item in my index, but
when I create a new index with identical settings and curl that document in
it just works. When I took that item and simply re-inserted it into the
original index via curl -X PUT it started working there too. After that I
wasn't able to reproduce the error even doing complete repopulating my
database and making it replicated to Elastic via rivers.
It was gone for about 3 days and today I got it as well. Upgrading from
0.90.3 to 0.90.5 din't help.
I tried to look through the Elasticsearch source codes hoping that I could
potentially understand what could cause that error in order to at least
find proper reproducing steps, but unfortunately I had to gave up -
rummaging in elastic guts turned our to be too tough exercise to me :slight_smile:

Please help me to understand what can cause this error. Is it Elastic bug
or mongodb-river bug or may be it's just me being doing something stupid.
I'm stuck and it's a blocking issue to me. Thank you in advance!

Here's my setup:

A document:
{
"_id": "5238c96693f4a7ca2b1a05e0",
"version": 0,
"name": "Venue2921",
"venueType": "Some type. Don't know yet",
"location": {
"version": 0,
"point": [
20.45349323402702,
47.9058385892468
]
},
"address": "Praha 1",
"facilities": [
{
"_typeHint": "com.psyball.core.model.Facility",
"_id": "5238c95893f4a7ca2b1943f6",
"code": "toilet",
"names": {
"en": "Toilet",
"cs": "Záchod",
"ru": "Туалет"
},
"logo": "toiletImage"
},
{
"_typeHint": "com.psyball.core.model.Facility",
"_id": "5238c95893f4a7ca2b1943f7",
"code": "shower",
"names": {
"en": "Shower",
"cs": "Sprcha",
"ru": "Душ"
},
"logo": "showerImage"
}
],
"fieldIds": [
"5238c96693f4a7ca2b1a05e1",
"5238c96693f4a7ca2b1a05e9"
]
}

... and the mapping:

{
"venue": {
"_all": {
"enabled": false
},
"properties": {
"location": {
"properties": {
"name": {
"type": "string"
},
"point": {
"type": "geo_point",
"lat_lon": true
},
"timezone": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}

... and the query:

{
"query": {
"filtered": {
"filter": {
"geo_distance" : {
"location.point" : [ 14.5, 50.1 ],
"distance" : "20km"
}
}
}
}
}

... and finally, the result:
*
*
[2013-09-18 00:35:50,827][DEBUG][action.search.type ] [Bereet] [i2a][0
], node[vukLL9_5Swmo8w3Lkv6Bmw], [P], s[STARTED]: Failed to execute [org.
elasticsearch.action.search.SearchRequest@39073c8a]
org.elasticsearch.search.query.QueryPhaseExecutionException: [i2a][0]: query
[filtered(ConstantScore(GeoDistanceFilter(location.point, ARC,
12.427423844746679, 50.1, 14.5)))->cache(_type:venue)],from[0],size[10]:
Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:138)
at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.
java:292)
at org.elasticsearch.search.action.SearchServiceTransportAction.
sendExecuteFetch(SearchServiceTransportAction.java:304)
at org.elasticsearch.action.search.type.
TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(
TransportSearchQueryAndFetchAction.java:71)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(
TransportSearchTypeAction.java:216)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(
TransportSearchTypeAction.java:203)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.
java:186)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.elasticsearch.ElasticSearchException: java.lang.
NumberFormatException: empty String
at org.elasticsearch.index.fielddata.AbstractIndexFieldData.load(
AbstractIndexFieldData.java:60)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.load(GeoPointDoubleArrayIndexFieldData.
java:41)
at org.elasticsearch.index.search.geo.GeoDistanceFilter.getDocIdSet(
GeoDistanceFilter.java:112)
at org.elasticsearch.common.lucene.search.ApplyAcceptedDocsFilter.
getDocIdSet(ApplyAcceptedDocsFilter.java:45)
at org.apache.lucene.search.ConstantScoreQuery$ConstantWeight.scorer(
ConstantScoreQuery.java:131)
at org.apache.lucene.search.FilteredQuery$RandomAccessFilterStrategy.
filteredScorer(FilteredQuery.java:538)
at org.apache.lucene.search.FilteredQuery$1.scorer(FilteredQuery.java:133)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:621)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(
ContextIndexSearcher.java:162)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:488)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:444)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:134)
... 9 more
Caused by: org.elasticsearch.common.util.concurrent.
UncheckedExecutionException: java.lang.NumberFormatException: empty String
at org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:
2199)
at org.elasticsearch.common.cache.LocalCache.get(LocalCache.java:3932)
at org.elasticsearch.common.cache.LocalCache$LocalManualCache.get(
LocalCache.java:4721)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache.load(IndicesFieldDataCache.java:144)
at org.elasticsearch.index.fielddata.AbstractIndexFieldData.load(
AbstractIndexFieldData.java:53)
... 22 more
Caused by: java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
at java.lang.Double.parseDouble(Double.java:540)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.loadDirect(
GeoPointDoubleArrayIndexFieldData.java:86)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.loadDirect(
GeoPointDoubleArrayIndexFieldData.java:41)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:150)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:144)
at org.elasticsearch.common.cache.LocalCache$LocalManualCache$1.load(
LocalCache.java:4724)
at org.elasticsearch.common.cache.LocalCache$LoadingValueReference.
loadFuture(LocalCache.java:3522)
at org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.
java:2315)
at org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(
LocalCache.java:2278)
at org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:
2193)
... 26 more
[2013-09-18 00:35:50,827][DEBUG][action.search.type ] [Bereet] Allshards failed
for phase: [query_fetch]

Thank you very much in advance!
Regards,
Alex.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

can you create a github issue for this one?
Minor question: Do you index am empty location field array somewhere?

--Alex

On Wed, Sep 18, 2013 at 12:41 AM, Олександр Вайда <oleksandr.vayda@gmail.com

wrote:

Hi All,

I'm using Elasticsearch for searching by Geo Point, and I am experiencing
a very weird issue. Sometimes my search works fine, but suddenly, for no
obvious reasons it starts throwing an internal Elasticsearch error:

java.lang.NumberFormatException: empty String

at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
at java.lang.Double.parseDouble(Double.java:540)
at
org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData.loadDirect(GeoPointDoubleArrayIndexFieldData.java:86)
at
org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData.loadDirect(GeoPointDoubleArrayIndexFieldData.java:41)
at
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:150)
at
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:144)
at
org.elasticsearch.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
at
org.elasticsearch.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
at
org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
at
org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
... 26 more

I am pretty much sure that my data hasn't changed, it's valid, I can
search it using other queries and filters, so it's not my data issue. The
error is intermittent, so I cannot even make a reproducible example (I
wasted a few hours for trying doing that with no success).
I am using the MongoDB river plugin to populate the Elasticsearch index
and it makes creating a curl recreation even more difficult task.
I was able to reproduce this error having one single item in my index, but
when I create a new index with identical settings and curl that document in
it just works. When I took that item and simply re-inserted it into the
original index via curl -X PUT it started working there too. After that I
wasn't able to reproduce the error even doing complete repopulating my
database and making it replicated to Elastic via rivers.
It was gone for about 3 days and today I got it as well. Upgrading from
0.90.3 to 0.90.5 din't help.
I tried to look through the Elasticsearch source codes hoping that I could
potentially understand what could cause that error in order to at least
find proper reproducing steps, but unfortunately I had to gave up -
rummaging in elastic guts turned our to be too tough exercise to me :slight_smile:

Please help me to understand what can cause this error. Is it Elastic bug
or mongodb-river bug or may be it's just me being doing something stupid.
I'm stuck and it's a blocking issue to me. Thank you in advance!

Here's my setup:

A document:
{
"_id": "5238c96693f4a7ca2b1a05e0",
"version": 0,
"name": "Venue2921",
"venueType": "Some type. Don't know yet",
"location": {
"version": 0,
"point": [
20.45349323402702,
47.9058385892468
]
},
"address": "Praha 1",
"facilities": [
{
"_typeHint": "com.psyball.core.model.Facility",
"_id": "5238c95893f4a7ca2b1943f6",
"code": "toilet",
"names": {
"en": "Toilet",
"cs": "Záchod",
"ru": "Туалет"
},
"logo": "toiletImage"
},
{
"_typeHint": "com.psyball.core.model.Facility",
"_id": "5238c95893f4a7ca2b1943f7",
"code": "shower",
"names": {
"en": "Shower",
"cs": "Sprcha",
"ru": "Душ"
},
"logo": "showerImage"
}
],
"fieldIds": [
"5238c96693f4a7ca2b1a05e1",
"5238c96693f4a7ca2b1a05e9"
]
}

... and the mapping:

{
"venue": {
"_all": {
"enabled": false
},
"properties": {
"location": {
"properties": {
"name": {
"type": "string"
},
"point": {
"type": "geo_point",
"lat_lon": true
},
"timezone": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}

... and the query:

{
"query": {
"filtered": {
"filter": {
"geo_distance" : {
"location.point" : [ 14.5, 50.1 ],
"distance" : "20km"
}
}
}
}
}

... and finally, the result:
*
*
[2013-09-18 00:35:50,827][DEBUG][action.search.type ] [Bereet] [i2a ][0], node[vukLL9_5Swmo8w3Lkv6Bmw], [P], s[STARTED]: Failed to execute [
org.elasticsearch.action.search.SearchRequest@39073c8a]
org.elasticsearch.search.query.QueryPhaseExecutionException: [i2a][0]:query
[filtered(ConstantScore(GeoDistanceFilter(location.point, ARC,
12.427423844746679, 50.1, 14.5)))->cache(_type:venue)],from[0],size[10]:
Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:138)
at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService
.java:292)
at org.elasticsearch.search.action.SearchServiceTransportAction.
sendExecuteFetch(SearchServiceTransportAction.java:304)
at org.elasticsearch.action.search.type.
TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(
TransportSearchQueryAndFetchAction.java:71)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(
TransportSearchTypeAction.java:216)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(
TransportSearchTypeAction.java:203)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.
java:186)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.elasticsearch.ElasticSearchException: java.lang.
NumberFormatException: empty String
at org.elasticsearch.index.fielddata.AbstractIndexFieldData.load(
AbstractIndexFieldData.java:60)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.load(GeoPointDoubleArrayIndexFieldData.
java:41)
at org.elasticsearch.index.search.geo.GeoDistanceFilter.getDocIdSet(
GeoDistanceFilter.java:112)
at org.elasticsearch.common.lucene.search.ApplyAcceptedDocsFilter.
getDocIdSet(ApplyAcceptedDocsFilter.java:45)
at org.apache.lucene.search.ConstantScoreQuery$ConstantWeight.scorer(
ConstantScoreQuery.java:131)
at org.apache.lucene.search.FilteredQuery$RandomAccessFilterStrategy.
filteredScorer(FilteredQuery.java:538)
at org.apache.lucene.search.FilteredQuery$1.scorer(FilteredQuery.java:133
)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:621)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(
ContextIndexSearcher.java:162)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:488)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:444)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:134)
... 9 more
Caused by: org.elasticsearch.common.util.concurrent.
UncheckedExecutionException: java.lang.NumberFormatException: empty String
at org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:
2199)
at org.elasticsearch.common.cache.LocalCache.get(LocalCache.java:3932)
at org.elasticsearch.common.cache.LocalCache$LocalManualCache.get(
LocalCache.java:4721)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache.load(IndicesFieldDataCache.java:144)
at org.elasticsearch.index.fielddata.AbstractIndexFieldData.load(
AbstractIndexFieldData.java:53)
... 22 more
Caused by: java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:
1011)
at java.lang.Double.parseDouble(Double.java:540)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.loadDirect(
GeoPointDoubleArrayIndexFieldData.java:86)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.loadDirect(
GeoPointDoubleArrayIndexFieldData.java:41)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:
150)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:
144)
at org.elasticsearch.common.cache.LocalCache$LocalManualCache$1.load(
LocalCache.java:4724)
at org.elasticsearch.common.cache.LocalCache$LoadingValueReference.
loadFuture(LocalCache.java:3522)
at org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.
java:2315)
at org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(
LocalCache.java:2278)
at org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:
2193)
... 26 more
[2013-09-18 00:35:50,827][DEBUG][action.search.type ] [Bereet] Allshards failed
for phase: [query_fetch]

Thank you very much in advance!
Regards,
Alex.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

is the datatype described in you mapping the only one in your index or do
you have any other types defined that keep a location.point field?

--Florian

On Wednesday, September 18, 2013 11:42:00 PM UTC+2, Alexander Reelsen wrote:

Hey,

can you create a github issue for this one?
Minor question: Do you index am empty location field array somewhere?

--Alex

On Wed, Sep 18, 2013 at 12:41 AM, Олександр Вайда <oleksan...@gmail.com<javascript:>

wrote:

Hi All,

I'm using Elasticsearch for searching by Geo Point, and I am experiencing
a very weird issue. Sometimes my search works fine, but suddenly, for no
obvious reasons it starts throwing an internal Elasticsearch error:

java.lang.NumberFormatException: empty String

at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
at java.lang.Double.parseDouble(Double.java:540)
at
org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData.loadDirect(GeoPointDoubleArrayIndexFieldData.java:86)
at
org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData.loadDirect(GeoPointDoubleArrayIndexFieldData.java:41)
at
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:150)
at
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:144)
at
org.elasticsearch.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
at
org.elasticsearch.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
at
org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
at
org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
... 26 more

I am pretty much sure that my data hasn't changed, it's valid, I can
search it using other queries and filters, so it's not my data issue. The
error is intermittent, so I cannot even make a reproducible example (I
wasted a few hours for trying doing that with no success).
I am using the MongoDB river plugin to populate the Elasticsearch index
and it makes creating a curl recreation even more difficult task.
I was able to reproduce this error having one single item in my index,
but when I create a new index with identical settings and curl that
document in it just works. When I took that item and simply re-inserted it
into the original index via curl -X PUT it started working there too. After
that I wasn't able to reproduce the error even doing complete repopulating
my database and making it replicated to Elastic via rivers.
It was gone for about 3 days and today I got it as well. Upgrading from
0.90.3 to 0.90.5 din't help.
I tried to look through the Elasticsearch source codes hoping that I
could potentially understand what could cause that error in order to at
least find proper reproducing steps, but unfortunately I had to gave up -
rummaging in elastic guts turned our to be too tough exercise to me :slight_smile:

Please help me to understand what can cause this error. Is it Elastic bug
or mongodb-river bug or may be it's just me being doing something stupid.
I'm stuck and it's a blocking issue to me. Thank you in advance!

Here's my setup:

A document:
{
"_id": "5238c96693f4a7ca2b1a05e0",
"version": 0,
"name": "Venue2921",
"venueType": "Some type. Don't know yet",
"location": {
"version": 0,
"point": [
20.45349323402702,
47.9058385892468
]
},
"address": "Praha 1",
"facilities": [
{
"_typeHint": "com.psyball.core.model.Facility",
"_id": "5238c95893f4a7ca2b1943f6",
"code": "toilet",
"names": {
"en": "Toilet",
"cs": "Záchod",
"ru": "Туалет"
},
"logo": "toiletImage"
},
{
"_typeHint": "com.psyball.core.model.Facility",
"_id": "5238c95893f4a7ca2b1943f7",
"code": "shower",
"names": {
"en": "Shower",
"cs": "Sprcha",
"ru": "Душ"
},
"logo": "showerImage"
}
],
"fieldIds": [
"5238c96693f4a7ca2b1a05e1",
"5238c96693f4a7ca2b1a05e9"
]
}

... and the mapping:

{
"venue": {
"_all": {
"enabled": false
},
"properties": {
"location": {
"properties": {
"name": {
"type": "string"
},
"point": {
"type": "geo_point",
"lat_lon": true
},
"timezone": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}

... and the query:

{
"query": {
"filtered": {
"filter": {
"geo_distance" : {
"location.point" : [ 14.5, 50.1 ],
"distance" : "20km"
}
}
}
}
}

... and finally, the result:
*
*
[2013-09-18 00:35:50,827][DEBUG][action.search.type ] [Bereet] [i2a ][0], node[vukLL9_5Swmo8w3Lkv6Bmw], [P], s[STARTED]: Failed to execute [
org.elasticsearch.action.search.SearchRequest@39073c8a]
org.elasticsearch.search.query.QueryPhaseExecutionException: [i2a][0]:query
[filtered(ConstantScore(GeoDistanceFilter(location.point, ARC,
12.427423844746679, 50.1, 14.5)))->cache(_type:venue)],from[0],size[10]:
Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:138
)
at org.elasticsearch.search.SearchService.executeFetchPhase(
SearchService.java:292)
at org.elasticsearch.search.action.SearchServiceTransportAction.
sendExecuteFetch(SearchServiceTransportAction.java:304)
at org.elasticsearch.action.search.type.
TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(
TransportSearchQueryAndFetchAction.java:71)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(
TransportSearchTypeAction.java:216)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(
TransportSearchTypeAction.java:203)
at org.elasticsearch.action.search.type.
TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction
.java:186)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.elasticsearch.ElasticSearchException: java.lang.
NumberFormatException: empty String
at org.elasticsearch.index.fielddata.AbstractIndexFieldData.load(
AbstractIndexFieldData.java:60)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.load(GeoPointDoubleArrayIndexFieldData.
java:41)
at org.elasticsearch.index.search.geo.GeoDistanceFilter.getDocIdSet(
GeoDistanceFilter.java:112)
at org.elasticsearch.common.lucene.search.ApplyAcceptedDocsFilter.
getDocIdSet(ApplyAcceptedDocsFilter.java:45)
at org.apache.lucene.search.ConstantScoreQuery$ConstantWeight.scorer(
ConstantScoreQuery.java:131)
at org.apache.lucene.search.FilteredQuery$RandomAccessFilterStrategy.
filteredScorer(FilteredQuery.java:538)
at org.apache.lucene.search.FilteredQuery$1.scorer(FilteredQuery.java:
133)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:621)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(
ContextIndexSearcher.java:162)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:488)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:444)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:134
)
... 9 more
Caused by: org.elasticsearch.common.util.concurrent.
UncheckedExecutionException: java.lang.NumberFormatException: empty
String
at org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java
:2199)
at org.elasticsearch.common.cache.LocalCache.get(LocalCache.java:3932)
at org.elasticsearch.common.cache.LocalCache$LocalManualCache.get(
LocalCache.java:4721)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache.load(IndicesFieldDataCache.java:144
)
at org.elasticsearch.index.fielddata.AbstractIndexFieldData.load(
AbstractIndexFieldData.java:53)
... 22 more
Caused by: java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:
1011)
at java.lang.Double.parseDouble(Double.java:540)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.loadDirect(
GeoPointDoubleArrayIndexFieldData.java:86)
at org.elasticsearch.index.fielddata.plain.
GeoPointDoubleArrayIndexFieldData.loadDirect(
GeoPointDoubleArrayIndexFieldData.java:41)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:
150)
at org.elasticsearch.indices.fielddata.cache.
IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:
144)
at org.elasticsearch.common.cache.LocalCache$LocalManualCache$1.load(
LocalCache.java:4724)
at org.elasticsearch.common.cache.LocalCache$LoadingValueReference.
loadFuture(LocalCache.java:3522)
at org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache
.java:2315)
at org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(
LocalCache.java:2278)
at org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java
:2193)
... 26 more
[2013-09-18 00:35:50,827][DEBUG][action.search.type ] [Bereet] Allshards failed
for phase: [query_fetch]

Thank you very much in advance!
Regards,
Alex.

--
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.