lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4303) Analysis factories should use ResourceLoader, not Class.forName
Date Mon, 13 Aug 2012 20:42:38 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-4303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Smiley updated LUCENE-4303:
---------------------------------

    Attachment: LUCENE-4303_Use_ResourceLoader_not_class_forName.patch

Attached is a patch that works.  Basically, the two affected factories were modified to support
ResourceLoaderAware.  Their init() methods were transferred to inform() instead.

If you think it's good Uwe, I'll commit it.  Perhaps a CHANGES.txt is needed?
                
> Analysis factories should use ResourceLoader, not Class.forName
> ---------------------------------------------------------------
>
>                 Key: LUCENE-4303
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4303
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Minor
>         Attachments: LUCENE-4303_Use_ResourceLoader_not_class_forName.patch
>
>
> This affects SnowballPorterFilterFactory and PhoneticFilterFactory.
> In Solr I encountered this problem when I specified an encoder and I was forced to put
the library in WEB-INF/lib instead of /solr/lib/.

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message