Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class LazyDocument

    Defers actually loading a field's value until you ask for it. You must not use the returned Field instances after the provided reader has been closed.

    Inheritance
    System.Object
    LazyDocument
    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.Misc.dll
    Syntax
    public class LazyDocument

    Constructors

    | Improve this Doc View Source

    LazyDocument(IndexReader, Int32)

    Declaration
    public LazyDocument(IndexReader reader, int docID)
    Parameters
    Type Name Description
    Lucene.Net.Index.IndexReader reader
    System.Int32 docID

    Methods

    | Improve this Doc View Source

    GetField(FieldInfo)

    Creates an IndexableField whose value will be lazy loaded if and when it is used.

    NOTE: This method must be called once for each value of the field name specified in sequence that the values exist. This method may not be used to generate multiple, lazy, IndexableField instances refering to the same underlying IndexableField instance.

    The lazy loading of field values from all instances of IndexableField objects returned by this method are all backed by a single Document per LazyDocument instance.

    Declaration
    public virtual IIndexableField GetField(FieldInfo fieldInfo)
    Parameters
    Type Name Description
    Lucene.Net.Index.FieldInfo fieldInfo
    Returns
    Type Description
    Lucene.Net.Index.IIndexableField

    See Also

    GetField(FieldInfo)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.