Skip navigation links
com.fatwire.search.lucene
Interface AnalyzerFactory
-
public interface AnalyzerFactory
This is a factory for looking up Analyzers.
ANALYZER_FACTORY
static final java.lang.String ANALYZER_FACTORY
-
- See Also:
- Constant Field Values
getAnalyserForQuery
org.apache.lucene.analysis.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
org.apache.lucene.analysis.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
org.apache.lucene.analysis.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.
Skip navigation links
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.