[ 
https://issues.apache.org/jira/browse/LUCENE-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993094#comment-12993094
 ] 

Uwe Schindler commented on LUCENE-2915:
---------------------------------------

Parameters to codecs are a problem. The instantiation is done by the Java SPI 
API (see TIKA commit). In general maybe we should only register all codecs that 
are needed to open also existing indexes. E.g. if you have an index that 
requires an ExternalSmartHuperDuperCodec, IndexWriter/Reader should complain on 
opening this index. The user then should simply add the required jar file and 
then the Index should be possible to open.

In my opinion IndexReader should not take any config for this, but IndexWriter 
should maybe take a per-field config (which codec for which field). In my 
opinion, the whole codec configuration would then suddenly get much easier. 
Parameters like the pulsing paramter should be given to indexwriter in this 
configuration, but IndexReader should be able to read any index, as far as all 
referenced codecs are in classpath.

Do I miss something? But I agree maybe we should open another issue. I can help 
with the SPI-impl and ANT manifest changes.

> make CoreCodecProvider convenience class so apps can easily pick per-field 
> codecs
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-2915
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2915
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-2915.patch
>
>
> We already have DefaultCodecProvider, which simply registers all core codecs 
> and uses Standard for all fields, but it's package private.
> We should make this public, and name it CoreCodecProvider.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to