org.apache.lucene.analysis.ja

Class JapaneseNumberFilterFactory



  • public class JapaneseNumberFilterFactory
    extends TokenFilterFactory
    Factory for JapaneseNumberFilter.
     <fieldType name="text_ja" class="solr.TextField">
       <analyzer>
         <tokenizer class="solr.JapaneseTokenizerFactory" discardPunctuation="false"/>
         <filter class="solr.JapaneseNumberFilter"/>
       </analyzer>
     </fieldType>
     

    It is important that punctuation is not discarded by the tokenizer so use discardPunctuation="false" in your JapaneseTokenizerFactory.