lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Calderon <calderon....@gmail.com>
Subject help with solr.PatternTokenizerFactory
Date Wed, 09 Sep 2009 20:14:16 GMT
hello *, im not sure what im doing wrong i have this field defined in
schema.xml, using admin/analysis.jsp its working as expected,

    <fieldType name="text_spell" class="solr.TextField">
      <analyzer>
        <charFilter class="solr.HTMLStripCharFilterFactory" />
        <tokenizer class="solr.PatternTokenizerFactory" pattern=";" />
        <filter class="solr.LowerCaseFilterFactory" />
        <filter class="solr.ISOLatin1AccentFilterFactory" />
        <filter class="solr.PatternReplaceFilterFactory"
pattern="(\p{Punct}+)" replacement="" replace="all"/>
      </analyzer>
    </fieldType>


but when i try to update via csvhandler i get

Error 500 org.apache.solr.analysis.PatternTokenizerFactory$1 cannot be
cast to org.apache.lucene.analysis.Tokenizer

java.lang.ClassCastException:
org.apache.solr.analysis.PatternTokenizerFactory$1 cannot be cast to
org.apache.lucene.analysis.Tokenizer
        at org.apache.solr.analysis.TokenizerChain.getStream(TokenizerChain.java:69)
        at org.apache.solr.analysis.SolrAnalyzer.reusableTokenStream(SolrAnalyzer.java:74)
...



im using nightly of solr 1.4

thx much,
--joe

Mime
View raw message