Skip to content

Instantly share code, notes, and snippets.

@jkebinger
Created May 3, 2011 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkebinger/954205 to your computer and use it in GitHub Desktop.
Save jkebinger/954205 to your computer and use it in GitHub Desktop.
Elastic Search Errors
org.elasticsearch.search.query.QueryPhaseExecutionException: [landscape][0]: query[ConstantScore(*:*)],from[0],size[10]: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:215)
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$1.run(TransportSearchTypeAction.java:151)
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:680)
Caused by: java.lang.NullPointerException
at org.elasticsearch.common.lucene.docset.AndDocIdSet$AndDocIdSetIterator.nextDoc(AndDocIdSet.java:89)
at org.apache.lucene.util.OpenBitSetDISI.inPlaceOr(OpenBitSetDISI.java:52)
at org.apache.lucene.util.OpenBitSetDISI.<init>(OpenBitSetDISI.java:32)
at org.elasticsearch.common.lucene.docset.OpenBitDocSet.<init>(OpenBitDocSet.java:45)
at org.elasticsearch.common.lucene.docset.DocSets.convert(DocSets.java:46)
at org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:59)
at org.elasticsearch.common.lucene.MultiCollector.setNextReader(MultiCollector.java:62)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:516)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:169)
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)
... 9 more
[2011-05-03 16:50:14,789][DEBUG][action.search.type ] [Allan, Liz] [landscape][1], node[Il68vM0WRhecJ460VKAqwA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@5071c1b2]
org.elasticsearch.search.query.QueryPhaseExecutionException: [landscape][1]: query[ConstantScore(*:*)],from[0],size[10]: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:215)
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$1.run(TransportSearchTypeAction.java:151)
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:680)
Caused by: java.lang.NullPointerException
at org.elasticsearch.common.lucene.docset.AndDocIdSet$AndDocIdSetIterator.nextDoc(AndDocIdSet.java:89)
at org.apache.lucene.util.OpenBitSetDISI.inPlaceOr(OpenBitSetDISI.java:52)
at org.apache.lucene.util.OpenBitSetDISI.<init>(OpenBitSetDISI.java:32)
at org.elasticsearch.common.lucene.docset.OpenBitDocSet.<init>(OpenBitDocSet.java:45)
at org.elasticsearch.common.lucene.docset.DocSets.convert(DocSets.java:46)
at org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:59)
at org.elasticsearch.common.lucene.MultiCollector.setNextReader(MultiCollector.java:62)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:516)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:169)
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)
... 9 more
[2011-05-03 16:50:14,806][DEBUG][action.search.type ] [Allan, Liz] [landscape][2], node[Il68vM0WRhecJ460VKAqwA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@5071c1b2]
org.elasticsearch.search.query.QueryPhaseExecutionException: [landscape][2]: query[ConstantScore(*:*)],from[0],size[10]: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:215)
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$1.run(TransportSearchTypeAction.java:151)
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:680)
Caused by: java.lang.NullPointerException
at org.elasticsearch.common.lucene.docset.AndDocIdSet$AndDocIdSetIterator.nextDoc(AndDocIdSet.java:89)
at org.apache.lucene.util.OpenBitSetDISI.inPlaceOr(OpenBitSetDISI.java:52)
at org.apache.lucene.util.OpenBitSetDISI.<init>(OpenBitSetDISI.java:32)
at org.elasticsearch.common.lucene.docset.OpenBitDocSet.<init>(OpenBitDocSet.java:45)
at org.elasticsearch.common.lucene.docset.DocSets.convert(DocSets.java:46)
at org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:59)
at org.elasticsearch.common.lucene.MultiCollector.setNextReader(MultiCollector.java:62)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:516)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:169)
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)
... 9 more
[2011-05-03 16:50:14,830][DEBUG][action.search.type ] [Allan, Liz] [landscape][3], node[Il68vM0WRhecJ460VKAqwA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@5071c1b2]
org.elasticsearch.search.query.QueryPhaseExecutionException: [landscape][3]: query[ConstantScore(*:*)],from[0],size[10]: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:215)
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$1.run(TransportSearchTypeAction.java:151)
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:680)
Caused by: java.lang.NullPointerException
at org.elasticsearch.common.lucene.docset.AndDocIdSet$AndDocIdSetIterator.nextDoc(AndDocIdSet.java:89)
at org.apache.lucene.util.OpenBitSetDISI.inPlaceOr(OpenBitSetDISI.java:52)
at org.apache.lucene.util.OpenBitSetDISI.<init>(OpenBitSetDISI.java:32)
at org.elasticsearch.common.lucene.docset.OpenBitDocSet.<init>(OpenBitDocSet.java:45)
at org.elasticsearch.common.lucene.docset.DocSets.convert(DocSets.java:46)
at org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:59)
at org.elasticsearch.common.lucene.MultiCollector.setNextReader(MultiCollector.java:62)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:516)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:169)
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)
... 9 more
[2011-05-03 16:50:14,855][DEBUG][action.search.type ] [Allan, Liz] [landscape][4], node[Il68vM0WRhecJ460VKAqwA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@5071c1b2]
org.elasticsearch.search.query.QueryPhaseExecutionException: [landscape][4]: query[ConstantScore(*:*)],from[0],size[10]: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:215)
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$1.run(TransportSearchTypeAction.java:151)
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:680)
Caused by: java.lang.NullPointerException
at org.elasticsearch.common.lucene.docset.AndDocIdSet$AndDocIdSetIterator.nextDoc(AndDocIdSet.java:89)
at org.apache.lucene.util.OpenBitSetDISI.inPlaceOr(OpenBitSetDISI.java:52)
at org.apache.lucene.util.OpenBitSetDISI.<init>(OpenBitSetDISI.java:32)
at org.elasticsearch.common.lucene.docset.OpenBitDocSet.<init>(OpenBitDocSet.java:45)
at org.elasticsearch.common.lucene.docset.DocSets.convert(DocSets.java:46)
at org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:59)
at org.elasticsearch.common.lucene.MultiCollector.setNextReader(MultiCollector.java:62)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:516)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:169)
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)
... 9 more
@snozwoz
Copy link

snozwoz commented Jul 12, 2011

we have similar error with hybernate/lucine search. but struggling to find the solution. Did you fix this issue?

java.lang.NullPointerException
at org.apache.lucene.util.OpenBitSetDISI.inPlaceOr(OpenBitSetDISI.java:52)
at org.apache.lucene.util.OpenBitSetDISI.(OpenBitSetDISI.java:32)
at org.apache.lucene.search.BooleanFilter.getDocIdSet(BooleanFilter.java:95)
at org.hibernate.search.filter.ChainedFilter.getDocIdSet(ChainedFilter.java:85)
at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:544)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:525)
at org.hibernate.search.query.engine.impl.QueryHits.updateTopDocs(QueryHits.java:219)
at org.hibernate.search.query.engine.impl.QueryHits.(QueryHits.java:127)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment