Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10426

Should we create a static factory method for loading VectorValues?

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core/index
    • 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? 

      Attachments

        Activity

          People

            Unassigned Unassigned
            gsmiller Greg Miller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: