apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.45k stars 973 forks source link

Fix vector scorer interface consistency #13365

Closed benwtrent closed 1 month ago

benwtrent commented 1 month ago

Follow up to: https://github.com/apache/lucene/pull/13181

I noticed the quantized interface had a slightly different name.

Additionally, testing showed we are inconsistent when there aren't any vectors to score. This makes the response consistent (e.g. null when there aren't any vectors).