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

Robert Muir updated LUCENE-5077:
--------------------------------

    Attachment: LUCENE-5077.patch

Untested patch. I think this way you can just do:

{code}
    new FilterCodec("MyCodec", new Lucene42Codec()) {
      @Override
      public NormsFormat normsFormat() {
        return new Lucene42NormsFormat(PackedInts.DEFAULT);
      }
    };
{code}

I like it better than my previous idea of making Consumer/Producer public, 
because it exposes much less surface area and is easier to use...what do you 
think?
                
> make it easier to use compressed norms
> --------------------------------------
>
>                 Key: LUCENE-5077
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5077
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>             Fix For: 5.0, 4.4
>
>         Attachments: LUCENE-5077.patch
>
>
> Lucene42DVConsumer's ctor takes acceptableOverheadRatio, so that you can 
> tradeoff time/space, and we pass PackedInts.FASTEST so we always use 8 bits 
> per value.
> But the class is package private, so if I want to make my own NormsFormat and 
> pass e.g. PackedInts.COMPACT, I can't ... I think we should make this class 
> public / @experimental?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to