• API

    Show / Hide Table of Contents

    Class DocumentDictionary.DocumentInputEnumerator

    Implements IInputEnumerator from stored fields.

    Inheritance
    System.Object
    DocumentDictionary.DocumentInputEnumerator
    Implements
    IInputEnumerator
    Lucene.Net.Util.IBytesRefEnumerator
    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.Search.Suggest
    Assembly: Lucene.Net.Suggest.dll
    Syntax
    protected class DocumentInputEnumerator : IInputEnumerator, IBytesRefEnumerator

    Constructors

    | Improve this Doc View Source

    DocumentInputEnumerator(DocumentDictionary, Boolean, Boolean)

    Creates an iterator over term, weight and payload fields from the lucene index. Setting hasPayloads to false, implies an enumerator over only term and weight.

    Declaration
    public DocumentInputEnumerator(DocumentDictionary documentDictionary, bool hasPayloads, bool hasContexts)
    Parameters
    Type Name Description
    DocumentDictionary documentDictionary
    System.Boolean hasPayloads
    System.Boolean hasContexts

    Properties

    | Improve this Doc View Source

    Comparer

    Declaration
    public virtual IComparer<BytesRef> Comparer { get; }
    Property Value
    Type Description
    System.Collections.Generic.IComparer<Lucene.Net.Util.BytesRef>
    | Improve this Doc View Source

    Contexts

    Declaration
    public virtual ICollection<BytesRef> Contexts { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<Lucene.Net.Util.BytesRef>
    | Improve this Doc View Source

    Current

    Declaration
    public BytesRef Current { get; }
    Property Value
    Type Description
    Lucene.Net.Util.BytesRef
    | Improve this Doc View Source

    HasContexts

    Declaration
    public virtual bool HasContexts { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    HasPayloads

    Declaration
    public virtual bool HasPayloads { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Payload

    Declaration
    public virtual BytesRef Payload { get; }
    Property Value
    Type Description
    Lucene.Net.Util.BytesRef
    | Improve this Doc View Source

    Weight

    Declaration
    public virtual long Weight { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    GetWeight(Document, Int32)

    Returns the value of the Weight property for the current document. Retrieves the value for the Weight property if its stored (using doc) or if its indexed as NumericDocValues (using docId) for the document. If no value is found, then the weight is 0.

    Declaration
    protected virtual long GetWeight(Document doc, int docId)
    Parameters
    Type Name Description
    Lucene.Net.Documents.Document doc
    System.Int32 docId
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    MoveNext()

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    System.Boolean

    Implements

    IInputEnumerator
    Lucene.Net.Util.IBytesRefEnumerator
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)