Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PassageFormatter

    Creates a formatted snippet from the top passages.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    PassageFormatter
    DefaultPassageFormatter
    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.PostingsHighlight
    Assembly: Lucene.Net.ICU.dll
    Syntax
    public abstract class PassageFormatter

    Methods

    Format(Passage[], string)

    Formats the top passages from content into a human-readable text snippet.

    Declaration
    public abstract object Format(Passage[] passages, string content)
    Parameters
    Type Name Description
    Passage[] passages

    top-N passages for the field. Note these are sorted in the order that they appear in the document for convenience.

    string content

    content for the field.

    Returns
    Type Description
    object

    formatted highlight. Note that for the non-expert APIs in ICUPostingsHighlighter that return string, the ToString() method on the object returned by this method is used to compute the string.

    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.