Discovered something interesting. As Alex mentioned above, the query will not be performing the scoring in the example above.
But, if I modify the example in the manner below:
In this case, the output of the query shows score being calculated for the inner_hit. Although, that score is ignored by the main filter leading to final score of the hit being equal to 1.
It must be because of the has_parent clause that the filter context from the main filter was not passed down to the query in the has_parent clause.
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.