You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "iprithv (via GitHub)" <gi...@apache.org> on 2026/05/21 21:17:50 UTC

[PR] Validate zero vectors in setVectorValue() for cosine similarity fields [lucene]

iprithv opened a new pull request, #16098:
URL: https://github.com/apache/lucene/pull/16098

   PR #15751 added zero-vector validation in KnnByteVectorField and KnnFloatVectorField constructors when cosine similarity is configured. However, setVectorValue() was not covered, allowing users to bypass the check by creating a field with a valid vector and then mutating it to a zero vector. This can still lead to the same MergeAbortedException / CheckIndex failures described in #15540.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Validate zero vectors in setVectorValue() for cosine similarity fields [lucene]

Posted by "iprithv (via GitHub)" <gi...@apache.org>.
iprithv commented on PR #16098:
URL: https://github.com/apache/lucene/pull/16098#issuecomment-4558937226

   @benwtrent could you please help review this? thanks!


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Validate zero vectors in setVectorValue() for cosine similarity fields [lucene]

Posted by "benwtrent (via GitHub)" <gi...@apache.org>.
benwtrent merged PR #16098:
URL: https://github.com/apache/lucene/pull/16098


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org