lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (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:17:38 GMT

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

Uwe Schindler commented on SOLR-3737:
-------------------------------------

Sorry, Solr is correct. When directly passed to ResourceLoader the path is correct. The problem
here is the way how ClasspathResourceLoader handles this. It uses Class.getResource() to load
and thats wrong, because that one expects a "/" to be absolute. We have to fix this and maybe
fix some tests not giving absolute paths.
                
> 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
>         Attachments: SOLR-3737.patch
>
>
> 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