Skip to content

Instantly share code, notes, and snippets.

@clintongormley
Created October 15, 2011 12:46
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 clintongormley/ca2da49500f4c55638a7 to your computer and use it in GitHub Desktop.
Save clintongormley/ca2da49500f4c55638a7 to your computer and use it in GitHub Desktop.
curl -XGET 'http://data2:9205/iannounce_object/_search?pretty=1' -d '
{
"fields" : [],
"from" : 0,
"query" : {
"constant_score" : {
"filter" : {
"bool" : {
"must" : [
{
"term" : {
"status" : "active"
}
},
{
"term" : {
"region" : "jpno"
}
}
]
}
}
}
},
"size" : "1"
}
'
[13:45:38,112][DEBUG][action.search.type ] [Poundcakes] [iannounce_object_1305376652][2], node[FWzPGHs-Q0aFqAFJf6ofbA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@3b9b9669]
org.elasticsearch.search.query.QueryPhaseExecutionException: [iannounce_object_1305376652][2]: query[ConstantScore(BooleanFilter( +FilterCacheFilterWrapper(status:active) +FilterCacheFilterWrapper(region:jpno)))],from[0],size[1]: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:221)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:234)
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:134)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:204)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:191)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:177)
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.ArrayIndexOutOfBoundsException: 3
at org.apache.lucene.util.FixedBitSet.clear(FixedBitSet.java:300)
at org.elasticsearch.common.lucene.docset.DocSets.and(DocSets.java:75)
at org.elasticsearch.common.lucene.search.XBooleanFilter.getDocIdSet(XBooleanFilter.java:107)
at org.apache.lucene.search.DeletionAwareConstantScoreQuery$DeletionConstantWeight.scorer(DeletionAwareConstantScoreQuery.java:53)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:524)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:198)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:391)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:298)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:286)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:217)
... 9 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment