You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "spike liu (Jira)" <ji...@apache.org> on 2022/02/18 00:42:00 UTC
[jira] [Comment Edited] (LUCENE-10398) Add static method for getting Terms from LeafReader
[ https://issues.apache.org/jira/browse/LUCENE-10398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17494306#comment-17494306 ]
spike liu edited comment on LUCENE-10398 at 2/18/22, 12:41 AM:
---------------------------------------------------------------
It is my pleasure, [~gsmiller]
was (Author: spike.liu):
It is my pleasure, Greg.
> Add static method for getting Terms from LeafReader
> ---------------------------------------------------
>
> Key: LUCENE-10398
> URL: https://issues.apache.org/jira/browse/LUCENE-10398
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Marc D'Mello
> Priority: Minor
> Fix For: 9.1
>
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> Hi all, {{LeafReader}} has methods like {{getBinaryDocValues(String field)}} that return {{null}} values if the field is not indexed. These methods also have equivalent {{DocValues}} static methods, such as {{DocValues.getBinary()}}, which return an {{emptyBinary()}} rather than a {{null}} if there is no field. I noticed that {{Terms}} does not have an equivalent static method for {{LeafReader.terms()}} like {{Terms.terms()}} or something similar. I was wondering if there was a reason for this, or if a method like this could be useful. Thanks!
--
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