I'm trying to score some documents via their a dense_vector field, via a script_score query.
The cosine computation is relatively expensive, so I'd like to limit it to the best scoring results of the "query" clause. This would allow me to set an upper bound to the documents that will be rescored.
Right now I can't find any option for that, because the "size" parameter - in my understanding - gets applied to the results of the "script_score" itself, and not to the results of the "query" clause within it.
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.