Closed bugmakerrrrrr closed 3 weeks ago
I like this. Could you add an entry under "Optimizations" in "CHANGES.txt"?
I don't remember how vectors handle ghost fields, could this trigger a NPE if a field indexes vectors, then all docs that have vectors get merged away?
The test shows that vectors will return a empty instance for ghost fields, but for safety reasons, I added a null checks.
This looks like something that could go into 9.11, let's move the CHANGES entry under 9.11?
Done.
This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!
@jpountz could you please take a look when you get a chance
@bugmakerrrrrr Once you handle the conflicts, I can merge and backport. I think this is ready to go unless @jpountz has any outstanding concerns.
@benwtrent done
Description
Considering only one vector value can be indexed per doc, we can use the Float/ByteVectorValues#size method to implement Weight#count for vector values in the FieldExistsQuery