com.fatwire.search.lucene
Interface AnalyzerFactory


public interface AnalyzerFactory

This is a factory for looking up Analyzers.


Field Summary
static java.lang.String ANALYZER_FACTORY
           
 
Method Summary
 Analyzer getAnalyserForQuery(QueryExpression ex)
          Returns Analyzer to be used for building lucene query from QueryExpression.
 Analyzer getAnalyzerForIndex()
          Returns Analyzer for building the index.
 Analyzer getAnalyzerForIndexRow(IndexRow row)
          Returns an IndexRow specific Analyzer.
 

Field Detail

ANALYZER_FACTORY

static final java.lang.String ANALYZER_FACTORY
See Also:
Constant Field Values
Method Detail

getAnalyserForQuery

Analyzer getAnalyserForQuery(QueryExpression ex)
Returns Analyzer to be used for building lucene query from QueryExpression.

Parameters:
ex - QueryExpression to convert.
Returns:
Analyzer to be used.

getAnalyzerForIndex

Analyzer getAnalyzerForIndex()
Returns Analyzer for building the index. Cannot return null. This Analyzer will be used as the default analyzer for all those documents for which AnalyzerFactory.getAnalyzerForIndexRow(IndexRow) returns null.

Returns:
Analyzer for building the index, cannot be null.

getAnalyzerForIndexRow

Analyzer getAnalyzerForIndexRow(IndexRow row)
Returns an IndexRow specific Analyzer. Can return null, in which case, Analyzer returned by AnalyzerFactory.getAnalyzerForIndex() will be used.

Parameters:
row - input data set.
Returns:
Analyzer for the input data set.


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.