[
https://issues.apache.org/jira/browse/LUCENE-4055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284544#comment-13284544
]
Renaud Delbru commented on LUCENE-4055:
---------------------------------------
{quote}
What codec metadata?
{quote}
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: https://issues.apache.org/jira/browse/LUCENE-4055
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]