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
    Namespace: Lucene.Net.Search.Payloads
    Assembly: Lucene.Net.dll
    Syntax
    public class PayloadSpanUtil : object

    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
    ICollection<System.Byte[]>

    payloads Collection

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)