I am using a bool query to combine several dis_max queries. I was
getting some results in a rather unexpected order and went to check
out the JSON returned by elasticsearch. Much to my surprise, on about
half of the documents coming out of this bool query, the coord factor
was not being applied. First of all assuming my query json is well-
formed, this is rather inconsistent. Additionally is there a way with
the query DSL to disable coord much like Lucene's BooleanQuery. The
query I am sending to elasticsearch looks something like this
I am using a bool query to combine several dis_max queries. I was
getting some results in a rather unexpected order and went to check
out the JSON returned by elasticsearch. Much to my surprise, on about
half of the documents coming out of this bool query, the coord factor
was not being applied. First of all assuming my query json is well-
formed, this is rather inconsistent. Additionally is there a way with
the query DSL to disable coord much like Lucene's BooleanQuery. The
query I am sending to elasticsearch looks something like this
That was my problem. I didn't see anything about coord being disabled
in ES. In Lucene it's fairly clearly documented with things like the
BooleanQuery(boolean disableCoord) constructor. I saw nothing
regarding it at all in the documentation for the query DSL. I figured
out by trial and error that I could set "disableCoord" : true in the
bool query, but that was not the product of documentation. Nonetheless
it was inconsistent without that line, with half of the documents
having scores that had been multiplied through by coord, and the other
half not.
I am using a bool query to combine several dis_max queries. I was
getting some results in a rather unexpected order and went to check
out the JSON returned by elasticsearch. Much to my surprise, on about
half of the documents coming out of this bool query, the coord factor
was not being applied. First of all assuming my query json is well-
formed, this is rather inconsistent. Additionally is there a way with
the query DSL to disable coord much like Lucene's BooleanQuery. The
query I am sending to elasticsearch looks something like this
That was my problem. I didn't see anything about coord being disabled
in ES. In Lucene it's fairly clearly documented with things like the
BooleanQuery(boolean disableCoord) constructor. I saw nothing
regarding it at all in the documentation for the query DSL. I figured
out by trial and error that I could set "disableCoord" : true in the
bool query, but that was not the product of documentation. Nonetheless
it was inconsistent without that line, with half of the documents
having scores that had been multiplied through by coord, and the other
half not.
I am using a bool query to combine several dis_max queries. I was
getting some results in a rather unexpected order and went to check
out the JSON returned by elasticsearch. Much to my surprise, on about
half of the documents coming out of this bool query, the coord factor
was not being applied. First of all assuming my query json is well-
formed, this is rather inconsistent. Additionally is there a way with
the query DSL to disable coord much like Lucene's BooleanQuery. The
query I am sending to elasticsearch looks something like this
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.