lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3737) StempelPolishStemFilterFactory can't find resource '/org/apache/lucene/analysis/pl/stemmer_20000.tbl'
Date Fri, 17 Aug 2012 00:09:37 GMT

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

Steven Rowe commented on SOLR-3737:
-----------------------------------

When I remove the initial slash from the resource path:

{code:java|title=StempelPolishStemFilterFactory.java}
35: private static final String STEMTABLE = "org/apache/lucene/analysis/pl/stemmer_20000.tbl";
{code}

Then jar it up and substitute it for the stempel jar in the unpacked Solr distribution, the
failure goes away.

One problem: removing the initial slash causes {{TestStempelPolishFilterFactory.testBasics()}}
to fail:

{noformat}
java.io.IOException: Resource not found: org/apache/lucene/analysis/pl/stemmer_20000.tbl
	at __randomizedtesting.SeedInfo.seed([D7338607BCC7C31C:EAEB282B84299D6C]:0)
	at org.apache.lucene.analysis.util.ClasspathResourceLoader.openResource(ClasspathResourceLoader.java:67)
	at org.apache.lucene.analysis.stempel.StempelPolishStemFilterFactory.inform(StempelPolishStemFilterFactory.java:42)
	at org.apache.lucene.analysis.stempel.TestStempelPolishStemFilterFactory.testBasics(TestStempelPolishStemFilterFactory.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
{noformat}

                
> StempelPolishStemFilterFactory can't find resource '/org/apache/lucene/analysis/pl/stemmer_20000.tbl'
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3737
>                 URL: https://issues.apache.org/jira/browse/SOLR-3737
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>    Affects Versions: 4.0-BETA
>            Reporter: Steven Rowe
>
> The Stempel stemmer appears to be broken under Solr in v4.0.0-BETA, very likely related
to LUCENE-2510 / LUCENE-4044.
> When I add the following to the example, I get the below-listed exception on start-up:
> {code:xml|title=solrconfig.xml}
> <lib dir="../../../contrib/analysis-extras/lucene-libs/" regex=".*\.jar"/>
> {code}
> {code:xml|title=schema.xml}
> <fields>
>   <field name="content" type="text_pl" indexed="true" stored="false" multiValued="true"/>
> [...]
> <types>
>   <fieldType name="text_pl" class="solr.TextField" positionIncrementGap="100">
>     <analyzer>
>       <tokenizer class="solr.StandardTokenizerFactory"/>
>       <filter class="solr.LowerCaseFilterFactory"/>
>       <filter class="solr.StempelPolishStemFilterFactory"/>
>     </analyzer>
>   </fieldType>
> {code}
> {noformat:title=Solr console output}
> [...]
> INFO: Adding 'file:/C:/temp/apache-solr-4.0.0-BETA/contrib/analysis-extras/lucene-libs/lucene-analyzers-stempel-4.0.0-BETA.jar'
to classloader
> [...]
> SEVERE: null:java.lang.RuntimeException: java.io.IOException: Can't find resource '/org/apache/lucene/analysis/pl/stemmer_20000.tbl'
in classpath or 'solr\collection1\conf/', cwd=C:\temp\apache-solr-4.0.0-BETA\example
>         at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:116)
>         at org.apache.solr.core.CoreContainer.create(CoreContainer.java:850)
>         at org.apache.solr.core.CoreContainer.load(CoreContainer.java:539)
>         at org.apache.solr.core.CoreContainer.load(CoreContainer.java:360)
>         at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:309)
>         at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:106)
> [...]
> Caused by: java.io.IOException: Can't find resource '/org/apache/lucene/analysis/pl/stemmer_20000.tbl'
in classpath or 'solr\collection1\conf/', cwd=C:\temp\apache-solr-4.0.0-BETA\example
>         at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:314)
>         at org.apache.lucene.analysis.stempel.StempelPolishStemFilterFactory.inform(StempelPolishStemFilterFactory.java:42)
>         at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:613)
>         at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:114)
>         ... 44 more
> {noformat}

--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message