Class ICUCollationKeyAnalyzer
Configures Keyword
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 Lucene
- As of 4.0,
s are directly encoded as bytes. Previous versions will encode the bytes with Indexable Binary .String Tools
Constructors
| Improve this Doc View SourceICUCollationKeyAnalyzer(Collator)
Declaration
public ICUCollationKeyAnalyzer(Collator collator)
Parameters
Type | Name | Description |
---|---|---|
Collator | collator |
ICUCollationKeyAnalyzer(LuceneVersion, Collator)
Create a new ICUCollationcollator
.
Declaration
public ICUCollationKeyAnalyzer(LuceneVersion matchVersion, Collator collator)
Parameters
Type | Name | Description |
---|---|---|
Lucene |
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. |
fieldName | |
Text |
reader |
Returns
Type | Description |
---|---|
Token |