com.atlassian.jira.issue.index.analyzer
Class ThaiAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
com.atlassian.jira.issue.index.analyzer.ThaiAnalyzer
- All Implemented Interfaces:
- Closeable
public class ThaiAnalyzer
- extends org.apache.lucene.analysis.Analyzer
Extends the functionality of the standard ThaiAnalyser provided by Lucene by adding the SubtokenFilter.
Note: checked for Lucene 2.9 compatibility.
- See Also:
SubtokenFilter
Constructor Summary |
ThaiAnalyzer(org.apache.lucene.util.Version matchVersion,
boolean indexing)
|
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 |
ThaiAnalyzer
public ThaiAnalyzer(org.apache.lucene.util.Version matchVersion,
boolean indexing)
tokenStream
public final org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Creates a TokenStream which tokenizes all the text in the provided Reader.
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
- Returns:
- A TokenStream build from a ClassicTokenizer and appropriate filters for the
language. See
isIndexing
public boolean isIndexing()
wrapStreamForIndexing
protected org.apache.lucene.analysis.TokenStream wrapStreamForIndexing(org.apache.lucene.analysis.TokenStream result)
reusableTokenStream
public final org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName,
Reader reader)
throws IOException
- Overrides:
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
- Throws:
IOException
Copyright © 2002-2012 Atlassian. All Rights Reserved.