Class DocumentExtensions
LUCENENET specific extensions to the Lucene.Net.Documents.Document class.
Inheritance
System.Object
DocumentExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.ICU.dll
Syntax
public static class DocumentExtensions
Methods
| Improve this Doc View SourceAddICUCollationDocValuesField(Document, String, Collator)
Adds a new ICUCollationDocValuesField.
NOTE: you should not create a new one for each document, instead just make one and reuse it during your indexing process, setting the value via SetStringValue(String).
Declaration
public static ICUCollationDocValuesField AddICUCollationDocValuesField(this Document document, string name, Collator collator)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Documents.Document | document | This Lucene.Net.Documents.Document. |
System.String | name | Field name. |
ICU4N.Text.Collator | collator | Collator for generating collation keys. |
Returns
Type | Description |
---|---|
ICUCollationDocValuesField | The field that was added to this Lucene.Net.Documents.Document. |