Method WrapComponents
WrapComponents(String, TokenStreamComponents)
Wraps / alters the given TokenStreamComponents, taken from the wrapped Analyzer, to form new components. It is through this method that new TokenFilters can be added by AnalyzerWrappers. By default, the given components are returned.
Declaration
protected virtual TokenStreamComponents WrapComponents(string fieldName, TokenStreamComponents components)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | Name of the field which is to be analyzed |
TokenStreamComponents | components | TokenStreamComponents taken from the wrapped Analyzer |
Returns
Type | Description |
---|---|
TokenStreamComponents | Wrapped / altered TokenStreamComponents. |