[ 
https://issues.apache.org/jira/browse/SOLR-3623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man resolved SOLR-3623.
----------------------------

    Resolution: Cannot Reproduce

I can't reproduce any problem with the packaging of analysis-extras.

What i did...

1) downloaded & uncompressed the binary package of Solr 4.0.0-ALPHA

2) noted the following info in contrib/analysis-extras/README.txt ...

{noformat}
Relies upon the following lucene components (in lucene-libs/):

 * lucene-analyzers-icu-X.Y.jar
 * lucene-analyzers-smartcn-X.Y.jar
 * lucene-analyzers-stempel-X.Y.jar
 
And the ICU library (in lib/):

 * icu4j-X.Y.jar
{noformat}

3) noted the existence of the following jars...

{noformat}
hossman@frisbee:~/tmp/solr-4.0.0-ALPHA-binary/apache-solr-4.0.0-ALPHA$ ls 
contrib/analysis-extras/lib/*.jar
contrib/analysis-extras/lib/icu4j-4.8.1.1.jar
hossman@frisbee:~/tmp/solr-4.0.0-ALPHA-binary/apache-solr-4.0.0-ALPHA$ ls 
contrib/analysis-extras/lucene-libs/*.jar
contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.0.0-ALPHA.jar
contrib/analysis-extras/lucene-libs/lucene-analyzers-morfologik-4.0.0-ALPHA.jar
contrib/analysis-extras/lucene-libs/lucene-analyzers-smartcn-4.0.0-ALPHA.jar
contrib/analysis-extras/lucene-libs/lucene-analyzers-stempel-4.0.0-ALPHA.jar
contrib/analysis-extras/lucene-libs/morfologik-fsa-1.5.2.jar
contrib/analysis-extras/lucene-libs/morfologik-polish-1.5.2.jar
contrib/analysis-extras/lucene-libs/morfologik-stemming-1.5.2.jar
{noformat}

4) made the following additions to the example solrconfig.xml...

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

5) made the following additions to the example schema.xml...

{noformat}
   <field name="icufield" type="icu" indexed="true" stored="true"/>
...
    <fieldType name="icu" class="solr.TextField">
      <analyzer>
        <tokenizer class="solr.ICUTokenizerFactory"/>
      </analyzer>
    </fieldType>
{noformat}

6) ran the example with "java -jar start.jar"

7) observed no problems.
                
> 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