[
https://issues.apache.org/jira/browse/SOLR-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Willnauer updated SOLR-1942:
----------------------------------
Attachment: SOLR-1942.patch
Updated the last version to support custom CodecProvider as well as custom
Codecs via plugin. Currently this patch only supports specifying codecs for
FieldTypes like this:
{code}
<fieldType name="string_pulsing" class="solr.StrField" codec="Pulsing"/>
<fieldType name="string_simpletext" class="solr.StrField" codec="SimpleText"/>
<fieldType name="string_standard" class="solr.StrField" codec="Standard"/>
{code}
and in solrconfig.xml the provider and its codecs can be configured like this:
(while the class argument on codecProvider is optional)
{code}
....
</deletionPolicy>
<codecProvider class="org.apache.solr.core.MockCodecProvider"
defaultCodec="Pulsing">
<codec
class="org.apache.lucene.index.codecs.simpletext.SimpleTextCodec"/>
<codec class="org.apache.lucene.index.codecs.preflex.PreFlexCodec"/>
</codecProvider>
</mainIndex>
....
{code}
> Ability to select codec per field
> ---------------------------------
>
> Key: SOLR-1942
> URL: https://issues.apache.org/jira/browse/SOLR-1942
> Project: Solr
> Issue Type: New Feature
> Affects Versions: 4.0
> Reporter: Yonik Seeley
> Assignee: Simon Willnauer
> Fix For: 4.0
>
> Attachments: SOLR-1942.patch, SOLR-1942.patch, SOLR-1942.patch
>
>
> We should use PerFieldCodecWrapper to allow users to select the codec
> per-field.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]