org.apache.oodt.cas.filemgr.tools
Class CASAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.oodt.cas.filemgr.tools.CASAnalyzer

public class CASAnalyzer
extends org.apache.lucene.analysis.Analyzer

Version:
$Revision: 13181 $

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.
 
Constructor Summary
CASAnalyzer()
          Builds an analyzer.
CASAnalyzer(String[] stopWords)
          Builds an analyzer with the given stop words.
 
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
 

Field Detail

STOP_WORDS

public static final String[] STOP_WORDS
An array containing some common English words that are usually not useful for searching.

Constructor Detail

CASAnalyzer

public CASAnalyzer()
Builds an analyzer.


CASAnalyzer

public CASAnalyzer(String[] stopWords)
Builds an analyzer with the given stop words.

Method Detail

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.