Created
February 10, 2011 22:11
-
-
Save karussell/821460 to your computer and use it in GitHub Desktop.
setFilter exception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.elasticsearch.transport.RemoteTransportException: [Fer-de-Lance][inet[/127.0.0.1:9300]][indices/search] | |
Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], total failure; shardFailures {[VHXZa25OQGCtSDa9zdUyFQ][twindex][0]: QueryPhaseExecutionException[[twindex][0]: query[ConstantScore(org.elasticsearch.common.lucene.search.AndFilter@7ed467ba)],from[0],size[15],sort[<custom:"relevance": org.elasticsearch.index.field.data.doubles.DoubleFieldDataType$1@1afc83a>!]: Query Failed [Failed to execute main query]]; nested: }{[VHXZa25OQGCtSDa9zdUyFQ][twindex][3]: QueryPhaseExecutionException[[twindex][3]: query[ConstantScore(org.elasticsearch.common.lucene.search.AndFilter@7ed467ba)],from[0],size[15],sort[<custom:"relevance": org.elasticsearch.index.field.data.doubles.DoubleFieldDataType$1@1afc83a>!]: Query Failed [Failed to execute main query]]; nested: } | |
... | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:250) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.access$200(TransportSearchTypeAction.java:78) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onFailure(TransportSearchTypeAction.java:200) | |
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:194) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.access$000(TransportSearchTypeAction.java:78) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:171) | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-02-10 23:27:36,587 [elasticsearch[Amahl Farouk][tp]-pool-1-thread-2] DEBUG org.elasticsearch.action.search.type - [Amahl Farouk] [twindex][1], node[I4DiNO3oStSDwz8VTeb9Ng], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@1ba3afe] | |
org.elasticsearch.search.query.QueryPhaseExecutionException: [twindex][1]: query[ConstantScore(org.elasticsearch.common.lucene.search.AndFilter@78c695be)],from[0],size[15],sort[<custom:"relevance": org.elasticsearch.index.field.data.doubles.DoubleFieldDataType$1@380c76>!]: Query Failed [Failed to execute main query] | |
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:194) | |
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:173) | |
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:131) | |
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:76) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:194) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.access$000(TransportSearchTypeAction.java:78) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:171) | |
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) | |
Caused by: java.lang.NullPointerException | |
at org.elasticsearch.index.field.data.doubles.DoubleFieldDataComparator.copy(DoubleFieldDataComparator.java:68) | |
at org.apache.lucene.search.TopFieldCollector$OneComparatorNonScoringCollector.collect(TopFieldCollector.java:85) | |
at org.elasticsearch.common.lucene.search.FilteredCollector.collect(FilteredCollector.java:53) | |
at org.elasticsearch.common.lucene.MultiCollector.collect(MultiCollector.java:54) | |
at org.apache.lucene.search.Scorer.score(Scorer.java:62) | |
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:212) | |
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:159) | |
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:131) | |
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:177) | |
at org.apache.lucene.search.Searcher.search(Searcher.java:49) | |
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:188) | |
... 9 more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SearchRequestBuilder srb ...// set query via QueryBuilders.queryString, set facets, sorts, filters, ... | |
key ="dt"; | |
// I'm doing a filter over date ('dt') ... but I'm also doing a facet over dt ... | |
RangeFilterBuilder rfb = FilterBuilders.rangeFilter(key); | |
from = Helper.toDate(val); | |
rfb.from(from).includeLower(true); | |
srb.setFilter(rfb); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment