Hi !
I updated Elasticsearch 5.6.0 to 6.1.1. Now I get this exception:
"reason": {
"type": "query_phase_execution_exception",
"reason": "Cannot use [sort] option in conjunction with [rescore]."
}
In my query I use sort and rescore. This combination worked before in elasticsearch 5.6.0 .
I have this same issue and question as well. However, I'm assuming the answer will be that when a sort is specified, that rescore doesn't make any sense since by doing a sort we're telling ES to ignore any other sorting based on the score. Thus, a rescore would have to be ignored anyway. Still, I'd like to have someone in the know verify my assumption. Meanwhile, I'm assuming in my query building code that if I'm going to specify a sort, I should leave out the rescore functions.
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.