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

Hoss Man commented on SOLR-3623:
--------------------------------

bq. There is no contrib/xx/lucene-libs in the current trunk or 4.x. 

They are created as part of the packaging process, they never exist in a source 
checkout.

run "ant create-package" on the 4x branch, and then look inside the resulting 
package/apache-solr-4.0-SNAPSHOT.tgz...

{noformat}
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lib/icu4j-4.8.1.1.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-morfologik-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-smartcn-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-stempel-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-fsa-1.5.3.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-polish-1.5.3.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-stemming-1.5.3.jar
apache-solr-4.0-SNAPSHOT/dist/apache-solr-analysis-extras-4.0-SNAPSHOT.jar
{noformat}

bq. 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.

That i can reproduce...

{noformat}
WEB-INF/lib/lucene-analyzers-common-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-kuromoji-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-morfologik-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-phonetic-4.0-SNAPSHOT.jar
WEB-INF/lib/morfologik-fsa-1.5.3.jar
WEB-INF/lib/morfologik-polish-1.5.3.jar
WEB-INF/lib/morfologik-stemming-1.5.3.jar
{noformat}

...and there is definitely an inconsistency here -- if some of the 
lucene-analyzers-*.jar files are being packaged in the war, then we should not 
also be putting them in contrib/*/lucene-libs and instructing people that they 
are a dependency in the README for that contrib.

It appears that icu4j-*.jar and lucene-analyzers-icu-*.jar are the only two 
external libs needed to make contrib/analysis-extras work, and we just need to 
update contrib/analysis-extras/README and contrib/analysis-extras/build.xml to 
reflect this.

I added the following to the (packaged) 
example/solr/collection1/conf/solrconfig.xml...

{code}
  <lib dir="../../../contrib/analysis-extras/lib" regex=".*\.jar" />
  <lib dir="../../../contrib/analysis-extras/lucene-libs" 
regex="lucene-analyzers-icu.*\.jar" />
  <lib dir="../../../dist/" regex="apache-solr-analysis-extras-\d.*\.jar" />
{code}

...and the "icu" field type seemed to work fine.
                
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to