Details
-
Wish
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
New
Description
Similar to the recent work in LUCENE-10398, it might be useful to add a static factory method for loading VectorValues that returns an "empty" VectorValues instance if the field doesn't exist in a segment (and also throws if the field is not configured as a vector field). This follows the same pattern of the static factory methods found in DocValues.
I'm less convinced this is useful to add right now since I don't really see any existing usages of LeafReader#getVectorValues, so maybe the value isn't there right now?