lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renaud Delbru (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4055) Refactor SegmentInfo / FieldInfo to make them extensible
Date Mon, 28 May 2012 20:45:23 GMT


Renaud Delbru commented on LUCENE-4055:

What codec metadata?

Metadata that indicates which codec is used for a particular field.

Let say I want to have a specific TermsHashConsumerPerField depending on the codec used by
a field. For example, for field A and field B which use the Lucen40 codec, we need to use
the FreqProxTermsWriterPerField. And for field C that uses my own specific codec, I need to
use the MyOwnTermsWriterPerField.

My current understanding tells me that to do this, the only way is to customise the IndexingChain
with a new TermsHashConsumer that overrides the method TermsHashConsumer#addField(TermsHashPerField
termsHashPerField, FieldInfo fieldInfo). This method addField will be able to instantiate
the correct TermsHashConsumerPerField if and only if there is codec metadata in the FieldInfo
parameter. That's why I am interested of using a customised FieldInfo to store codec-related
metadata about a field.

Or is there a better way to get codec-related information about a field in the IndexingChain

> Refactor SegmentInfo / FieldInfo to make them extensible
> --------------------------------------------------------
>                 Key: LUCENE-4055
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/codecs
>            Reporter: Andrzej Bialecki 
>            Assignee: Robert Muir
>             Fix For: 4.0
>         Attachments: LUCENE-4055.patch
> After LUCENE-4050 is done the resulting SegmentInfo / FieldInfo classes should be made
abstract so that they can be extended by Codec-s.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message