Class ICUCollationKeyAnalyzer
Configures KeywordTokenizer with ICUCollationAttributeFactory.
Inherited Members
Assembly: Lucene.Net.ICU.dll
Syntax
public sealed class ICUCollationKeyAnalyzer : Analyzer, IDisposable
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
Name | Description |
---|---|
ICUCollationKeyAnalyzer(Collator) | |
ICUCollationKeyAnalyzer(LuceneVersion, Collator) | Create a new ICUCollationKeyAnalyzer, using the specified |
Methods
Name | Description |
---|---|
CreateComponents(String, TextReader) |