• API

    Show / Hide Table of Contents

    Class Fields

    Flex API for access to fields and terms

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    Fields
    FieldsProducer
    FilterAtomicReader.FilterFields
    MultiFields
    Implements
    System.Collections.Generic.IEnumerable<System.String>
    System.Collections.IEnumerable
    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.Index
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Fields : IEnumerable<string>, IEnumerable

    Constructors

    | Improve this Doc View Source

    Fields()

    Sole constructor. (For invocation by subclass constructors, typically implicit.)

    Declaration
    protected Fields()

    Fields

    | Improve this Doc View Source

    EMPTY_ARRAY

    Zero-length Fields array.

    Declaration
    public static readonly Fields[] EMPTY_ARRAY
    Field Value
    Type Description
    Fields[]

    Properties

    | Improve this Doc View Source

    Count

    Gets the number of fields or -1 if the number of distinct field names is unknown. If >= 0, GetEnumerator() will return as many field names.

    NOTE: This was size() in Lucene.

    Declaration
    public abstract int Count { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    UniqueTermCount

    Returns the number of terms for all fields, or -1 if this measure isn't stored by the codec. Note that, just like other term measures, this measure does not take deleted documents into account.

    Declaration
    [Obsolete("Iterate fields and add their Count instead. This method is only provided as a transition mechanism to access this statistic for 3.x indexes, which do not have this statistic per-field.")]
    public virtual long UniqueTermCount { get; }
    Property Value
    Type Description
    System.Int64
    See Also
    Count

    Methods

    | Improve this Doc View Source

    GetEnumerator()

    Returns an enumerator that will step through all field names. This will not return null.

    Declaration
    public abstract IEnumerator<string> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<System.String>
    | Improve this Doc View Source

    GetTerms(String)

    Get the Terms for this field. This will return null if the field does not exist.

    Declaration
    public abstract Terms GetTerms(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    Terms

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)