iprithv commented on issue #16211:
URL: https://github.com/apache/lucene/issues/16211#issuecomment-4651754122

   thanks for the feedback. hmm right, a similarity function that only works 
with one vector type is weird.
   what if we scope this down to just a KnnBitVectorField wrapper? no new enum, 
no format changes. It would use EUCLIDEAN internally but the field name makes 
it clear this is for bit vectors and the codec handles scoring.
   instead of, `doc.add(new KnnByteVectorField("bits", vector, 
VectorSimilarityFunction.DOT_PRODUCT));`
   we can have, `doc.add(new KnnBitVectorField("bits", vector)); `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to