Have a question regarding "constant_score". When I use the "constant_score"
query and supply a "boost" param, the query returns docs with score still
as 1, not multiplied with the boost.
This happens because of query normalization: the query normalization factor
is 1/boost so in the end the score is multiplied by the boost and then
divided by the boost again in the end, so the score remains 0.
However, this doesn't mean that the boost is always ignored! For example,
if you wrap two constant-score queries into a boolean query:
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.