[
https://issues.apache.org/jira/browse/SOLR-3623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418096#comment-13418096
]
Lance Norskog commented on SOLR-3623:
-------------------------------------
The contrib/analysis-extras libraries have three kinds of jars: Solr factories,
lucene analyzer classes, and some have external dependencies. In trunk & 4.x
the lucene-analyzers-*.jar files are copied into the war file. The
apache-solr-analysis-extras jar and the dependent jars are not.
Except for morfologik's dependent jars. {{lucene/analysis/module-build.xml}}
defines a fileset property {{analyzers-morfologik.fileset}}.
{{solr/contrib/analysis-extras/build.xml}} uses this property to copy the
morfologik libraries into the war. And if fact a morfologik field type works if
you include ../../../dist/apache-solr-analysis-extras-4.0-SNAPSHOT.jar and not
the analysis-extras lib/ directory.
The other analyzers packaged into analysis-extras are icu, phonetic, smartcn
and stempel. icu and phonetic have dependent libraries. phonetic requires
commons-codec which is already in solr/lib. icu requires icu4j which is not
already added to solr. I have tried these two lines in both orders, and neither
worked.
{code}
<lib dir="../../../contrib/analysis-extras/lib" regex=".*\.jar" />
<lib dir="../../../dist/" regex="apache-solr-analysis-extras-\d.*\.jar" />
{code}
Classloading is broken in the trunk and 4.x.
> analysis-extras lucene libraries not packaged
> ---------------------------------------------
>
> Key: SOLR-3623
> URL: https://issues.apache.org/jira/browse/SOLR-3623
> Project: Solr
> Issue Type: Bug
> Components: Build
> Reporter: Lance Norskog
> Priority: Minor
> Fix For: 4.0, 5.0
>
>
> The Lucene libraries needed for solr/contrib/analysis-extras are not packaged
> up in the build. This field type throws an exception:
> {code}
> <fieldType name="icu" class="solr.TextField">
> <analyzer>
> <tokenizer class="solr.ICUTokenizerFactory"/>
> </analyzer>
> </fieldType>
> {code}
--
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: [email protected]
For additional commands, e-mail: [email protected]