You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Lu Xugang (Jira)" <ji...@apache.org> on 2022/06/15 16:20:00 UTC

[jira] [Assigned] (LUCENE-10603) Improve iteration of ords for SortedSetDocValues

     [ https://issues.apache.org/jira/browse/LUCENE-10603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lu Xugang reassigned LUCENE-10603:
----------------------------------

    Assignee: Lu Xugang

> Improve iteration of ords for SortedSetDocValues
> ------------------------------------------------
>
>                 Key: LUCENE-10603
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10603
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Lu Xugang
>            Assignee: Lu Xugang
>            Priority: Trivial
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> After SortedSetDocValues#docValueCount added since Lucene 9.2, should we refactor the implementation of ords iterations using docValueCount instead of NO_MORE_ORDS?
> Similar how SortedNumericDocValues did
> From 
> {code:java}
> for (long ord = values.nextOrd();ord != SortedSetDocValues.NO_MORE_ORDS; ord = values.nextOrd()) {
> }{code}
> to
> {code:java}
> for (int i = 0; i < values.docValueCount(); i++) {
>   long ord = values.nextOrd();
> }{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org