Class ICUCollationKeyAnalyzer
Configures KeywordTokenizer with ICUCollationAttributeFactory.
Inherited Members
Namespace: Lucene.Net.Collation
Assembly: Lucene.Net.ICU.dll
Syntax
public sealed class ICUCollationKeyAnalyzer : Analyzer
Remarks
Converts the token into its
WARNING: Make sure you use exactly the same
- Collator version - see
Version - The collation strength used - see
ICUCollationKeyAnalyzer is significantly faster and generates significantly shorter keys than CollationKeyAnalyzer. See http://site.icu-project.org/charts/collation-icu4j-sun for key generation timing and key length comparisons between ICU4J and java.text.Collator over several languages.
You must specify the required LuceneVersion compatibility when creating ICUCollationKeyAnalyzer:
- As of 4.0,
s are directly encoded as bytes. Previous versions will encode the bytes with IndexableBinaryStringTools.
Constructors
| Improve this Doc View SourceICUCollationKeyAnalyzer(Collator)
Declaration
public ICUCollationKeyAnalyzer(Collator collator)
Parameters
Type | Name | Description |
---|---|---|
Collator | collator |
ICUCollationKeyAnalyzer(LuceneVersion, Collator)
Create a new ICUCollationKeyAnalyzer, using the specified collator
.
Declaration
public ICUCollationKeyAnalyzer(LuceneVersion matchVersion, Collator collator)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
Collator | collator |
Methods
| Improve this Doc View SourceCreateComponents(String, TextReader)
Declaration
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | |
TextReader | reader |
Returns
Type | Description |
---|---|
TokenStreamComponents |