I'm running into a problem with highlighting a field when I set it as the
default_field in my search query.
org.elasticsearch.search.fetch.FetchPhaseExecutionException:
[4f3542202739100b22000002][3]: query[file_path:* text:vinny*
text:about],from[0],size[10],sort[,<custom:"file_id":
org.elasticsearch.index.field.data.strings.StringFieldDataType$1@b4818>]:
Fetch Failed [Failed to highlight field [text]]
at
org.elasticsearch.search.highlight.HighlightPhase.hitExecute(HighlightPhase.java:210)
at org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:206)
at
org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:434)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:314)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.executeFetch(TransportSearchQueryThenFetchAction.java:145)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction$2.run(TransportSearchQueryThenFetchAction.java:132)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
What is strange to me is that my original query I sent is
"file_path:vinny OR about". This seems to cause issues because I set the
default_field to a field called "text". The output I get back shows that
every word is being highlighted and I get the above exception. The
exception seems to happen when it tries to highlight "text" that has a zero
length.
This appears to be broken on 0.17.7 and 0.18.7.