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

Adrien Grand updated LUCENE-7545:
---------------------------------
    Attachment: LUCENE-7545.patch

Here is a patch. It adds a DocsWithFieldSet helper class that first assumes all 
docs have a value for the field and only stores the highest docID seen so far, 
and migrate to a FixedBitSet if there is a gap.

> Dense norms/doc values should not consume memory in the IW buffer to store 
> the set of docs with a value for the field
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-7545
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7545
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7545.patch
>
>
> Using a bit set to store docs that have a value for a field is great for 
> sparse doc values, but it is a pity we have to pay this price for dense doc 
> values too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to