Show / Hide Table of Contents

    Class PayloadSpanUtil

    Experimental class to get set of payloads for most standard Lucene queries. Operates like Highlighter - IndexReader should only contain doc of interest, best to use MemoryIndex.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    PayloadSpanUtil
    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.Payloads
    Assembly: Lucene.Net.dll
    Syntax
    public class PayloadSpanUtil

    Constructors

    | Improve this Doc View Source

    PayloadSpanUtil(IndexReaderContext)

    Declaration
    public PayloadSpanUtil(IndexReaderContext context)
    Parameters
    Type Name Description
    IndexReaderContext context

    that contains doc with payloads to extract

    See Also
    Context

    Methods

    | Improve this Doc View Source

    GetPayloadsForQuery(Query)

    Query should be rewritten for wild/fuzzy support.

    Declaration
    public virtual ICollection<byte[]> GetPayloadsForQuery(Query query)
    Parameters
    Type Name Description
    Query query

    rewritten query

    Returns
    Type Description
    System.Collections.Generic.ICollection<System.Byte[]>

    payloads Collection

    Exceptions
    Type Condition
    System.IO.IOException

    if there is a low-level I/O error

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)