When using the Similarity field in KNN Query, The response is not expected, The similarity value I gave was 0.6 and the boost as 1. Even though there are more than 30 documents which have score greater than 0.7 only one document is returned.
If similarity field is not mentioned in the query, the documents that were returned are having more than 0.7 score
@BenTrent
We are using the cosine similarity.
Anyway your answer has resolved my issue. Thanks for the quick response. Also can we please add this to the documentation as well to avoid this understanding gap.
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.