Fork me on GitHub
  • API

    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

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 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.