[ 
http://issues.apache.org/jira/browse/SOLR-27?page=comments#action_12421538 ] 
            
Bertrand Delacretaz commented on SOLR-27:
-----------------------------------------

>...it looks like the default language will be whatever was specified last 
>time...

I don't think so - I haven't checked the lifecycle of these factories 
precisely, but I've used the same configuration pattern as in 
StopFilterFactory, for example.

If I use the following configurations in my schema.xml, each in its own 
<fieldtype>:

   <filter class="solr.SnowballPorterFilterFactory" language="French" />
   ...
   <filter class="solr.SnowballPorterFilterFactory" />

The log says
 
  INFO: SnowballPorterFilterFactory: language=French
  ...
  INFO: SnowballPorterFilterFactory: language=English

Which is what I expect.

Let me know if I missed something!


> PATCH: Configurable language for SnowballPorterFilterFactory
> ------------------------------------------------------------
>
>                 Key: SOLR-27
>                 URL: http://issues.apache.org/jira/browse/SOLR-27
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>         Attachments: SnowballPorterFilterFactory.java, 
> SnowballPorterFilterFactory.patch
>
>
> With this patch, the language used by SnowballPorterFilterFactory is 
> configurable, for example:
>   <filter class="solr.SnowballPorterFilterFactory" language="French"/>
> Invalid languages will cause a ClassNotFoundException when the filter is 
> created (so at search time possibly, not at initialization time).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to