org.apache.blur.analysis
Class NoStopWordStandardAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.util.StopwordAnalyzerBase
          extended by org.apache.blur.analysis.NoStopWordStandardAnalyzer
All Implemented Interfaces:
Closeable

public class NoStopWordStandardAnalyzer
extends org.apache.lucene.analysis.util.StopwordAnalyzerBase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
 
Field Summary
static int DEFAULT_MAX_TOKEN_LENGTH
          Default maximum allowed token length
static org.apache.lucene.analysis.util.CharArraySet STOP_WORDS_SET
          An unmodifiable set containing some common English words that are usually not useful for searching.
 
Constructor Summary
NoStopWordStandardAnalyzer()
           
 
Method Summary
 int getMaxTokenLength()
           
 void setMaxTokenLength(int length)
          Set maximum allowed token length.
 
Methods inherited from class org.apache.lucene.analysis.util.StopwordAnalyzerBase
getStopwordSet
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, tokenStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_TOKEN_LENGTH

public static final int DEFAULT_MAX_TOKEN_LENGTH
Default maximum allowed token length

See Also:
Constant Field Values

STOP_WORDS_SET

public static final org.apache.lucene.analysis.util.CharArraySet STOP_WORDS_SET
An unmodifiable set containing some common English words that are usually not useful for searching.

Constructor Detail

NoStopWordStandardAnalyzer

public NoStopWordStandardAnalyzer()
Method Detail

setMaxTokenLength

public void setMaxTokenLength(int length)
Set maximum allowed token length. If a token is seen that exceeds this length then it is discarded. This setting only takes effect the next time tokenStream or tokenStream is called.


getMaxTokenLength

public int getMaxTokenLength()
See Also:
setMaxTokenLength(int)


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.