You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Greg Miller (Jira)" <ji...@apache.org> on 2022/02/17 18:37:00 UTC
[jira] [Created] (LUCENE-10426) Should we create a static factory method for loading VectorValues?
Greg Miller created LUCENE-10426:
------------------------------------
Summary: Should we create a static factory method for loading VectorValues?
Key: LUCENE-10426
URL: https://issues.apache.org/jira/browse/LUCENE-10426
Project: Lucene - Core
Issue Type: Wish
Components: core/index
Reporter: Greg Miller
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?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org