lucene-dev mailing list archives

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


David Smiley commented on LUCENE-4303:

I'll change the modifier for inject; I should know better.  RE  newInstance().getClass() --
yeah not great I know but it's less change and it's possible the resourceLoader's resolution
might involve more overhead which would get triggered on every create(TokenStream) call so
I went for this approach.

I'll commit soonish.
> Analysis factories should use ResourceLoader, not Class.forName
> ---------------------------------------------------------------
>                 Key: LUCENE-4303
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message