I have an index with a relatively small number (around 36k) of largish
documents. While searches work fine, attempts at sorting on anything other
than _score gives me the following error:
[2013-03-22 16:52:14,830][DEBUG][action.search.type ] [Chi Demon]
[green_lantern_seek][0], node[QZHa0NXTSDyonklDNiy0Bg], [P], s[STARTED]:
Failed to execute [org.elasticsearch.action.search.SearchRequest@2e4f7bc2]
org.elasticsearch.search.query.QueryPhaseExecutionException:
[green_lantern_seek][0]:
query[keywords:window],from[0],size[10],sort[<custom:"timestamp":
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@1be0799a>]:
Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:139)
at
org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:316)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:243)
at
org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:75)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 148
at
org.apache.lucene.util.packed.Packed64SingleBlock$Packed64SingleBlock3.get(Packed64SingleBlock.java:308)
at
org.elasticsearch.index.fielddata.plain.PagedBytesAtomicFieldData$BytesValues.getValueByOrd(PagedBytesAtomicFieldData.java:140)
at
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator.binarySearch(BytesRefOrdValComparator.java:459)
at
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator.binarySearch(BytesRefOrdValComparator.java:452)
at
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator.setBottom(BytesRefOrdValComparator.java:431)
at
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator$PerSegmentComparator.setBottom(BytesRefOrdValComparator.java:165)
at
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator.setNextReader(BytesRefOrdValComparator.java:410)
at
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator$PerSegmentComparator.setNextReader(BytesRefOrdValComparator.java:155)
at
org.apache.lucene.search.TopFieldCollector$OneComparatorNonScoringCollector.setNextReader(TopFieldCollector.java:97)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:602)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:192)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:572)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:524)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:501)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:345)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:128)
... 9 more
Restricting the number of results in the query (for example adding an
additional term in the query string), and things work. So this fails:
{
"sort" : [
{ "title" : {"order" : "desc"} }
]
,
"query" : {
"query_string" : { "query" : "keywords:foo" }
}
}
But reducing the number of query results via another term in the query
string seems to fix the issue
{
"sort" : [
{ "title" : {"order" : "desc"} }
]
,
"query" : {
"query_string" : { "query" : "keywords:foo filter:bar" }
}
}
I assume I'm running into some kind of resource limitation, but I'm not
sure where to start. Any pointers would be appreciated. Thanx in advance --
m
--
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.