Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldTermStack

    FieldTermStack is a stack that keeps query terms in the specified field of the document to be highlighted.

    Inheritance
    object
    FieldTermStack
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search.VectorHighlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class FieldTermStack

    Constructors

    FieldTermStack(IndexReader, int, string, FieldQuery)

    a constructor.

    Declaration
    public FieldTermStack(IndexReader reader, int docId, string fieldName, FieldQuery fieldQuery)
    Parameters
    Type Name Description
    IndexReader reader

    Lucene.Net.Index.IndexReader of the index

    int docId

    document id to be highlighted

    string fieldName

    field of the document to be highlighted

    FieldQuery fieldQuery

    FieldQuery object

    Exceptions
    Type Condition
    IOException

    If there is a low-level I/O error

    Properties

    FieldName

    field name

    Declaration
    public virtual string FieldName { get; }
    Property Value
    Type Description
    string

    IsEmpty

    to know whether the stack is empty. Returns true if the stack is empty, false if not

    Declaration
    public virtual bool IsEmpty { get; }
    Property Value
    Type Description
    bool

    Methods

    Pop()

    Returns the top FieldTermStack.TermInfo object of the stack

    Declaration
    public virtual FieldTermStack.TermInfo Pop()
    Returns
    Type Description
    FieldTermStack.TermInfo

    the top FieldTermStack.TermInfo object of the stack

    Push(TermInfo)

    Puts a FieldTermStack.TermInfo onto the top of the stack

    Declaration
    public virtual void Push(FieldTermStack.TermInfo termInfo)
    Parameters
    Type Name Description
    FieldTermStack.TermInfo termInfo

    the FieldTermStack.TermInfo object to be put on the top of the stack

    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.