org.apache.lucene.analysis
Class MockAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.MockAnalyzer
- All Implemented Interfaces:
- Closeable
public final class MockAnalyzer
- extends org.apache.lucene.analysis.Analyzer
Analyzer for testing
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEYWORD
public static final int KEYWORD
- See Also:
- Constant Field Values
WHITESPACE
public static final int WHITESPACE
- See Also:
- Constant Field Values
SIMPLE
public static final int SIMPLE
- See Also:
- Constant Field Values
MockAnalyzer
public MockAnalyzer()
MockAnalyzer
public MockAnalyzer(int tokenizer,
boolean lowercase)
MockAnalyzer
public MockAnalyzer(int tokenizer,
boolean lowercase,
boolean payloads)
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
reusableTokenStream
public org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName,
Reader reader)
throws IOException
- Overrides:
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
- Throws:
IOException
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.