[
https://issues.apache.org/jira/browse/LUCENE-6774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727754#comment-14727754
]
Dawid Weiss commented on LUCENE-6774:
-------------------------------------
What you should be using is this explicit constructor:
https://github.com/morfologik/morfologik-stemming/blob/master/morfologik-stemming/src/main/java/morfologik/stemming/Dictionary.java#L64
FSA can be read from an InputStream:
https://github.com/morfologik/morfologik-stemming/blob/master/morfologik-fsa/src/main/java/morfologik/fsa/FSA.java#L256
And DictionaryMetadata can be constructed programmatically or otherwise. Here
is the method that does the loading from two streams (FSA and properties):
https://github.com/morfologik/morfologik-stemming/blob/master/morfologik-stemming/src/main/java/morfologik/stemming/Dictionary.java#L106-L156
> Remove solr hack in MorfologikFilter
> ------------------------------------
>
> Key: LUCENE-6774
> URL: https://issues.apache.org/jira/browse/LUCENE-6774
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/analysis
> Reporter: Robert Muir
> Assignee: Uwe Schindler
> Priority: Blocker
> Fix For: Trunk, 5.4, 5.3.1
>
> Attachments: LUCENE-6774.patch, LUCENE-6774.patch, LUCENE-6774.patch,
> 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: [email protected]
For additional commands, e-mail: [email protected]