org.apache.oodt.cas.filemgr.tools
Class CASAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.oodt.cas.filemgr.tools.CASAnalyzer
public class CASAnalyzer
- extends org.apache.lucene.analysis.Analyzer
- Version:
- $Revision: 12226 $
An analyzer used in the CatalogSearch program.
- Author:
- woollard
Field Summary |
static String[] |
STOP_WORDS
An array containing some common English words that are usually not useful
for searching. |
Method Summary |
org.apache.lucene.analysis.TokenStream |
tokenStream(String fieldName,
Reader reader)
Constructs a StandardTokenizer filtered by a StandardFilter , a LowerCaseFilter and a StopFilter . |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
getPositionIncrementGap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STOP_WORDS
public static final String[] STOP_WORDS
- An array containing some common English words that are usually not useful
for searching.
CASAnalyzer
public CASAnalyzer()
- Builds an analyzer.
CASAnalyzer
public CASAnalyzer(String[] stopWords)
- Builds an analyzer with the given stop words.
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Constructs a
StandardTokenizer
filtered by a StandardFilter
, a LowerCaseFilter
and a StopFilter
.
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
Copyright © 1999-2011 Apache OODT. All Rights Reserved.