You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2014/06/21 11:01:34 UTC

[jira] [Updated] (LUCENE-5782) Improve OrdinalMap compression by sorting the supplied terms enums

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

Adrien Grand updated LUCENE-5782:
---------------------------------

    Attachment: LUCENE-5782.patch

Here is a patch. As suggested by Robert the API takes a long[] that allows to configure the weight of each terms enum, and the code uses the number of live terms as a weight.

> Improve OrdinalMap compression by sorting the supplied terms enums
> ------------------------------------------------------------------
>
>                 Key: LUCENE-5782
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5782
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.0, 4.10
>
>         Attachments: LUCENE-5782.patch
>
>
> As mentionned in LUCENE-5780, OrdinalMaps might have much better compression when the terms enums are supplied sorted by descending cardinality. When it is not the case, we could sort the enums and re-map segment indices on top of it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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