AssertionError at TopScoreDocCollector$InOrderTopScoreDocCollector.collect

I'm getting in one of my test cases the following error when searching
but maybe it is again already fixed :slight_smile:

Exception in thread "elasticsearch[search]-pool-3-thread-2"
java.lang.AssertionError
at org.apache.lucene.search.TopScoreDocCollector
$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:50)
at org.apache.lucene.search.Scorer.score(Scorer.java:90)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
519)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:
174)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
384)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
291)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
279)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:
211)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:
222)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:
134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:
76)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$2.run(TransportSearchTypeAction.java:169)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Can you provide a recreation? Its an internal assertion in Lucene.
On Wednesday, May 18, 2011 at 12:51 PM, Karussell wrote:

I'm getting in one of my test cases the following error when searching
but maybe it is again already fixed :slight_smile:

Exception in thread "elasticsearch[search]-pool-3-thread-2"
java.lang.AssertionError
at org.apache.lucene.search.TopScoreDocCollector
$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:50)
at org.apache.lucene.search.Scorer.score(Scorer.java:90)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
519)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:
174)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
384)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
291)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
279)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:
211)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:
222)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:
134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:
76)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$2.run(TransportSearchTypeAction.java:169)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

ah, it is due to the score calc in my own native script ...

On May 18, 11:51 am, Karussell tableyourt...@googlemail.com wrote:

I'm getting in one of my test cases the following error when searching
but maybe it is again already fixed :slight_smile:

Exception in thread "elasticsearch[search]-pool-3-thread-2"
java.lang.AssertionError
at org.apache.lucene.search.TopScoreDocCollector
$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:50)
at org.apache.lucene.search.Scorer.score(Scorer.java:90)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
519)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:
174)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
384)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
291)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
279)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:
211)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:
222)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:
134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:
76)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$2.run(TransportSearchTypeAction.java:169)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Right, just wanted to suggest that :). The collector can't handle negative Float.NEGATIVE_INFINITY or Nan values.
On Wednesday, May 18, 2011 at 12:54 PM, Karussell wrote:

ah, it is due to the score calc in my own native script ...

On May 18, 11:51 am, Karussell tableyourt...@googlemail.com wrote:

I'm getting in one of my test cases the following error when searching
but maybe it is again already fixed :slight_smile:

Exception in thread "elasticsearch[search]-pool-3-thread-2"
java.lang.AssertionError
at org.apache.lucene.search.TopScoreDocCollector
$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:50)
at org.apache.lucene.search.Scorer.score(Scorer.java:90)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
519)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:
174)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
384)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
291)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
279)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:
211)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:
222)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:
134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:
76)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$2.run(TransportSearchTypeAction.java:169)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

ups my score got == -Infinity ... so solved :wink:

On May 18, 11:54 am, Karussell tableyourt...@googlemail.com wrote:

ah, it is due to the score calc in my own native script ...

On May 18, 11:51 am, Karussell tableyourt...@googlemail.com wrote:

I'm getting in one of my test cases the following error when searching
but maybe it is again already fixed :slight_smile:

Exception in thread "elasticsearch[search]-pool-3-thread-2"
java.lang.AssertionError
at org.apache.lucene.search.TopScoreDocCollector
$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:50)
at org.apache.lucene.search.Scorer.score(Scorer.java:90)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
519)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:
174)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
384)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
291)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:
279)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:
211)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:
222)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:
134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:
76)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$2.run(TransportSearchTypeAction.java:169)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)