I'd expect the result of type foo to have a higher score, but both
results have the same score. Shouldn't the null_value be used to
automatically boost the document of type foo, or am I doing something
wrong?
The null_value setting is applied when _boost exists in the doc, and has
a null value. It is not applied when _boost does not exists. So, if you
added "_boost" : null to the foo doc, it will work. I guess an option to set
"default_value" is possible to add, open an issue?
I'd expect the result of type foo to have a higher score, but both
results have the same score. Shouldn't the null_value be used to
automatically boost the document of type foo, or am I doing something
wrong?
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.