org.apache.solr.analysis
Class JapanesePartOfSpeechKeepFilterFactory

java.lang.Object
  extended by org.apache.solr.analysis.BaseTokenFilterFactory
      extended by org.apache.solr.analysis.JapanesePartOfSpeechKeepFilterFactory
All Implemented Interfaces:
org.apache.solr.analysis.TokenFilterFactory, org.apache.solr.util.plugin.ResourceLoaderAware

public class JapanesePartOfSpeechKeepFilterFactory
extends org.apache.solr.analysis.BaseTokenFilterFactory
implements org.apache.solr.util.plugin.ResourceLoaderAware

Factory for JapanesePartOfSpeechKeepFilter.

 <fieldType name="text_ja" class="solr.TextField">
   <analyzer>
     <tokenizer class="solr.JapaneseTokenizerFactory"/>
     <filter class="solr.JapanesePartOfSpeechKeepFilterFactory" 
             tags="keepTags.txt" 
             enablePositionIncrements="true"/>
   </analyzer>
 </fieldType>


Field Summary
protected  Map<String,String> args
           
protected  org.apache.lucene.util.Version luceneMatchVersion
           
 
Fields inherited from class org.apache.solr.analysis.BaseTokenFilterFactory
log
 
Constructor Summary
JapanesePartOfSpeechKeepFilterFactory()
           
 
Method Summary
protected  void assureMatchVersion()
           
 org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream stream)
           
protected  boolean getBoolean(String arg0, boolean arg1)
           
protected  boolean getBoolean(String arg0, boolean arg1, boolean arg2)
           
protected  int getInt(String arg0)
           
protected  int getInt(String arg0, int arg1)
           
protected  int getInt(String arg0, int arg1, boolean arg2)
           
protected  org.apache.lucene.analysis.CharArraySet getWordSet(org.apache.solr.common.ResourceLoader arg0, String arg1, boolean arg2)
           
 void inform(org.apache.solr.common.ResourceLoader loader)
           
protected  void warnDeprecated(String arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

protected Map<String,String> args

luceneMatchVersion

protected org.apache.lucene.util.Version luceneMatchVersion
Constructor Detail

JapanesePartOfSpeechKeepFilterFactory

public JapanesePartOfSpeechKeepFilterFactory()
Method Detail

inform

public void inform(org.apache.solr.common.ResourceLoader loader)
Specified by:
inform in interface org.apache.solr.util.plugin.ResourceLoaderAware

create

public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream stream)
Specified by:
create in interface org.apache.solr.analysis.TokenFilterFactory

assureMatchVersion

protected final void assureMatchVersion()

warnDeprecated

protected final void warnDeprecated(String arg0)

getInt

protected int getInt(String arg0)

getInt

protected int getInt(String arg0,
                     int arg1)

getInt

protected int getInt(String arg0,
                     int arg1,
                     boolean arg2)

getBoolean

protected boolean getBoolean(String arg0,
                             boolean arg1)

getBoolean

protected boolean getBoolean(String arg0,
                             boolean arg1,
                             boolean arg2)

getWordSet

protected org.apache.lucene.analysis.CharArraySet getWordSet(org.apache.solr.common.ResourceLoader arg0,
                                                             String arg1,
                                                             boolean arg2)
                                                      throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.