Hi,
I am using elastic search 1.1.1 version. While I was trying to query on one
of my index , suddenly it started giving ReduceSearchPhaseException for a
sorting query on particular field . Before this the same query had no issue
. Also surprisingly when I restarted all my nodes the issue got resolved
and it is working fine. Also without the sort on that particular field it
was running good.
My query was as below,
{"query":{"match_all":{}},
"size":100,
"sort" : [ {
"updatedOn" : {
"order" : "desc",
"ignore_unmapped" : true
}
} ]
}
where the updatedOn field has the following mapping,
"updatedOn":{
"type":"date",
"format":"yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||yyyy-MM-dd HH:mm:ss"
}
The exception I am getting is,
org.elasticsearch.action.search.ReduceSearchPhaseException: Failed to
execute phase [query], [reduce]
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:248)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onResult(TransportSearchTypeAction.java:219)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onResult(TransportSearchTypeAction.java:216)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.search.action.SearchServiceTransportAction$4.handleResponse(SearchServiceTransportAction.java:217)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.search.action.SearchServiceTransportAction$4.handleResponse(SearchServiceTransportAction.java:208)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:154)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
~[elasticsearch-1.1.1.jar:na]
at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
~[elasticsearch-1.1.1.jar:na]
at org.elasticsearch.commo
As per my understanding, this ReduceSearchPhaseException comes when we try
to facet/sort on a field where all the values for that field are not of
same type. But here in this case as I have a mapping , there is no chance
of having some different type value in the updatedOn field.
Can someone tell me when this type of exception comes ? And why it got
resolved on server restart ? Is it some kind of bug in the ES version or
there is some other reason?
Thanks
Subhro
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/417cfc78-ed93-442a-b58f-227095035ff6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.