This only seems to happen when the query does not return any results..
Full backtrace:
[15:44:43,800][DEBUG][action.search.type ] [Hellion] [photos]
[0], node[f6c014fd-94cf-4e1e-9ecf-b1f17879603f], [P], s[STARTED]:
Failed to execute
[org.elasticsearch.action.search.SearchRequest@50fc1387] while moving
to second phase
java.lang.IllegalArgumentException: field can only be null when type
is SCORE or DOC
at org.apache.lucene.search.SortField.initFieldType(SortField.java:
217)
at org.apache.lucene.search.SortField.(SortField.java:127)
at
org.elasticsearch.search.controller.SearchPhaseController.sortDocs(SearchPhaseController.java:
106)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.moveToSecondPhase(TransportSearchQueryThenFetchAction.java:
85)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:
218)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$100(TransportSearchTypeAction.java:80)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$3.onResult(TransportSearchTypeAction.java:196)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:
130)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:
77)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:194)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:80)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$1.run(TransportSearchTypeAction.java:153)
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:637)
This only seems to happen when the query does not return any results..
Full backtrace:
[15:44:43,800][DEBUG][action.search.type ] [Hellion] [photos]
[0], node[f6c014fd-94cf-4e1e-9ecf-b1f17879603f], [P], s[STARTED]:
Failed to execute
[org.elasticsearch.action.search.SearchRequest@50fc1387] while moving
to second phase
java.lang.IllegalArgumentException: field can only be null when type
is SCORE or DOC
at org.apache.lucene.search.SortField.initFieldType(SortField.java:
217)
at org.apache.lucene.search.SortField.(SortField.java:127)
at
org.elasticsearch.search.controller.SearchPhaseController.sortDocs(SearchPhaseController.java:
106)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.moveToSecondPhase(TransportSearchQueryThenFetchAction.java:
85)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:
218)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$100(TransportSearchTypeAction.java:80)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$3.onResult(TransportSearchTypeAction.java:196)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:
130)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:
77)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:194)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:80)
at org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction$1.run(TransportSearchTypeAction.java:153)
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:637)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.