You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2013/06/25 01:32:20 UTC
[jira] [Updated] (LUCENE-5077) make it easier to use compressed
norms
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org