protected static class AnalysisRequestHandlerBase.AnalysisContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.lucene.analysis.Analyzer |
analyzer |
private java.lang.String |
fieldName |
private FieldType |
fieldType |
private java.util.Set<java.lang.String> |
termsToMatch |
| Constructor and Description |
|---|
AnalysisContext(FieldType fieldType,
org.apache.lucene.analysis.Analyzer analyzer,
java.util.Set<java.lang.String> termsToMatch)
Constructs a new AnalysisContext with a given field tpe, analyzer and
termsToMatch.
|
AnalysisContext(java.lang.String fieldName,
FieldType fieldType,
org.apache.lucene.analysis.Analyzer analyzer)
Constructs an AnalysisContext with a given field name, field type
and analyzer.
|
AnalysisContext(java.lang.String fieldName,
FieldType fieldType,
org.apache.lucene.analysis.Analyzer analyzer,
java.util.Set<java.lang.String> termsToMatch)
Constructs a new AnalysisContext with a given field tpe, analyzer and
termsToMatch.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
java.lang.String |
getFieldName() |
FieldType |
getFieldType() |
java.util.Set<java.lang.String> |
getTermsToMatch() |
private final java.lang.String fieldName
private final FieldType fieldType
private final org.apache.lucene.analysis.Analyzer analyzer
private final java.util.Set<java.lang.String> termsToMatch
public AnalysisContext(FieldType fieldType, org.apache.lucene.analysis.Analyzer analyzer, java.util.Set<java.lang.String> termsToMatch)
null. During the analysis processs, The produced tokens will
be compaired to the terms in the termsToMatch set. When found,
these tokens will be marked as a match.fieldType - The type of the field the analysis is performed on.analyzer - The analyzer to be used.termsToMatch - Holds all the terms that should match during the
analysis process.public AnalysisContext(java.lang.String fieldName,
FieldType fieldType,
org.apache.lucene.analysis.Analyzer analyzer)
fieldName - The name of the field the analysis is performed on
(may be null).fieldType - The type of the field the analysis is performed on.analyzer - The analyzer to be used during the analysis process.public AnalysisContext(java.lang.String fieldName,
FieldType fieldType,
org.apache.lucene.analysis.Analyzer analyzer,
java.util.Set<java.lang.String> termsToMatch)
termsToMatch set. When found,
these tokens will be marked as a match.fieldName - The name of the field the analysis is performed on
(may be null).fieldType - The type of the field the analysis is performed on.analyzer - The analyzer to be used.termsToMatch - Holds all the terms that should match during the
analysis process.public java.lang.String getFieldName()
public FieldType getFieldType()
public org.apache.lucene.analysis.Analyzer getAnalyzer()
public java.util.Set<java.lang.String> getTermsToMatch()