Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ICUCollationDocValuesField

    Indexes sort keys as a single-valued Lucene.Net.Documents.SortedDocValuesField.

    Inheritance
    object
    Field
    ICUCollationDocValuesField
    Implements
    IIndexableField
    IFormattable
    Inherited Members
    Field.GetStringValue()
    Field.GetStringValue(IFormatProvider)
    Field.GetStringValue(string)
    Field.GetStringValue(string, IFormatProvider)
    Field.GetReaderValue()
    Field.GetTokenStreamValue()
    Field.SetReaderValue(TextReader)
    Field.SetBytesValue(BytesRef)
    Field.SetBytesValue(byte[])
    Field.SetByteValue(byte)
    Field.SetInt16Value(short)
    Field.SetInt32Value(int)
    Field.SetInt64Value(long)
    Field.SetSingleValue(float)
    Field.SetDoubleValue(double)
    Field.SetTokenStream(TokenStream)
    Field.Boost
    Field.GetNumericValue()
    Field.NumericType
    Field.GetByteValue()
    Field.GetInt16Value()
    Field.GetInt32Value()
    Field.GetInt64Value()
    Field.GetSingleValue()
    Field.GetDoubleValue()
    Field.GetBinaryValue()
    Field.ToString()
    Field.ToString(string)
    Field.ToString(IFormatProvider)
    Field.ToString(string, IFormatProvider)
    Field.FieldType
    Field.IndexableFieldType
    Field.GetTokenStream(Analyzer)
    Field.TranslateFieldType(Field.Store, Field.Index, Field.TermVector)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Collation
    Assembly: Lucene.Net.ICU.dll
    Syntax
    public sealed class ICUCollationDocValuesField : Field, IIndexableField, IFormattable
    Remarks

    This is more efficient that ICUCollationKeyAnalyzer if the field only has one value: no uninversion is necessary to sort on the field, locale-sensitive range queries can still work via Lucene.Net.Search.FieldCacheRangeFilter, and the underlying data structures built at index-time are likely more efficient and use less memory than FieldCache.

    Constructors

    ICUCollationDocValuesField(string, Collator)

    Create 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 ICUCollationDocValuesField(string name, Collator collator)
    Parameters
    Type Name Description
    string name

    Field name.

    Collator collator

    Collator for generating collation keys.

    Remarks

    This is more efficient that ICUCollationKeyAnalyzer if the field only has one value: no uninversion is necessary to sort on the field, locale-sensitive range queries can still work via Lucene.Net.Search.FieldCacheRangeFilter, and the underlying data structures built at index-time are likely more efficient and use less memory than FieldCache.

    Exceptions
    Type Condition
    ArgumentNullException

    if name or collator is null.

    Properties

    Name

    The field's name

    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    Lucene.Net.Documents.Field.Name
    Remarks

    This is more efficient that ICUCollationKeyAnalyzer if the field only has one value: no uninversion is necessary to sort on the field, locale-sensitive range queries can still work via Lucene.Net.Search.FieldCacheRangeFilter, and the underlying data structures built at index-time are likely more efficient and use less memory than FieldCache.

    Methods

    SetStringValue(string)

    Expert: change the value of this field. This can be used during indexing to re-use a single Lucene.Net.Documents.Field instance to improve indexing speed by avoiding GC cost of new'ing and reclaiming Lucene.Net.Documents.Field instances. Typically a single Lucene.Net.Documents.Document instance is re-used as well. This helps most on small documents.

    Each Lucene.Net.Documents.Field instance should only be used once within a single Lucene.Net.Documents.Document instance. See ImproveIndexingSpeed for details.

    Declaration
    public override void SetStringValue(string value)
    Parameters
    Type Name Description
    string value
    Overrides
    Field.SetStringValue(string)
    Remarks

    This is more efficient that ICUCollationKeyAnalyzer if the field only has one value: no uninversion is necessary to sort on the field, locale-sensitive range queries can still work via Lucene.Net.Search.FieldCacheRangeFilter, and the underlying data structures built at index-time are likely more efficient and use less memory than FieldCache.

    Implements

    Lucene.Net.Index.IIndexableField
    IFormattable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.