You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2015/09/02 16:53:45 UTC

[jira] [Commented] (LUCENE-6774) Remove solr hack in MorfologikFilter

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

Uwe Schindler commented on LUCENE-6774:
---------------------------------------

I think the main problem is Morphologik that reads the resources from the context classloader - which is just wrong.

I'd suggest to not use the static {{Dictionary#getForLanguage}} and instead load the FSA with the methods taking InputStream or URL from resources. We just need to duplicate the ISO code -> Resource file name code and then pass the resource URL from the "right" classloader to the load() methods.

I can have a look.

> Remove solr hack in MorfologikFilter
> ------------------------------------
>
>                 Key: LUCENE-6774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6774
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 5.3.1
>
>         Attachments: LUCENE-6774.patch
>
>
> If solr wants to set the contextClassLoader because its classloading is fucked up, then it needs to do this hack itself: it should not be in lucene code.
> The current mess prevents use of this analyzer in other environments



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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