protected static class AnalysisRequestHandlerBase.AnalysisContext extends Object
Constructor and Description |
---|
AnalysisRequestHandlerBase.AnalysisContext(FieldType fieldType,
Analyzer analyzer,
Set<BytesRef> termsToMatch)
Constructs a new AnalysisContext with a given field tpe, analyzer and
termsToMatch.
|
AnalysisRequestHandlerBase.AnalysisContext(String fieldName,
FieldType fieldType,
Analyzer analyzer)
Constructs an AnalysisContext with a given field name, field type
and analyzer.
|
AnalysisRequestHandlerBase.AnalysisContext(String fieldName,
FieldType fieldType,
Analyzer analyzer,
Set<BytesRef> termsToMatch)
Constructs a new AnalysisContext with a given field tpe, analyzer and
termsToMatch.
|
Modifier and Type | Method and Description |
---|---|
Analyzer |
getAnalyzer() |
String |
getFieldName() |
FieldType |
getFieldType() |
Set<BytesRef> |
getTermsToMatch() |
public AnalysisRequestHandlerBase.AnalysisContext(FieldType fieldType, Analyzer analyzer, Set<BytesRef> 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 AnalysisRequestHandlerBase.AnalysisContext(String fieldName, FieldType fieldType, 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 AnalysisRequestHandlerBase.AnalysisContext(String fieldName, FieldType fieldType, Analyzer analyzer, Set<BytesRef> 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.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.