lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingfeng Yang <mfy...@wisewindow.com>
Subject plugin init failure for ShingleFilterFactory
Date Fri, 26 Jul 2013 23:26:41 GMT
I am trying to upgrade solr to 4.4 version, and looks like solr cann't load
the ShingleFilterFactory class.

417 [coreLoadExecutor-4-thread-1] ERROR org.apache.solr.core.CoreContainer
 – Unable to create core: collection1
org.apache.solr.common.SolrException: Plugin init failure for [schema.xml]
fieldType "textshingle": Plugin init failure for [schema.xml]
analyzer/filter: Error instantiating class:
'org.apache.lucene.analysis.shingle.ShingleFilterFactory'
        at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
        at
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:467)
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:164)
        at
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
        at
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
        at
org.apache.solr.core.ZkContainer.createFromZk(ZkContainer.java:268)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:655)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:364)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:356)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)

the field definition in the schema.xml is

    <fieldType name="textshingle" class="solr.TextField"
positionIncrementGap="100" stored="false">
        <analyzer type="index">
            <charFilter class="solr.HTMLStripCharFilterFactory"/>
            <tokenizer class="solr.StandardTokenizerFactory"/>
            <filter class="solr.StandardFilterFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.ShingleFilterFactory" maxShingleSize="3"
outputUnigrams="true"/>
            <filter class="solr.StopFilterFactory"
                    ignoreCase="true"
                    words="stopwords.txt"
                    enablePositionIncrements="false"
                    />
            <filter class="solr.SnowballPorterFilterFactory"
language="English" protected="protwords.txt"/>
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.StandardTokenizerFactory"/>
            <filter class="solr.StandardFilterFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.ShingleFilterFactory" maxShingleSize="3"
outputUnigrams="true" outputUnigramIfNoNgram="true"/>
            <filter class="solr.StopFilterFactory"
                    ignoreCase="true"
                    words="stopwords.txt"
                    enablePositionIncrements="false"
                    />
            <filter class="solr.SnowballPorterFilterFactory"
language="English" protected="protwords.txt"/>
        </analyzer>
    </fieldType>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message