Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Namespace Lucene.Net.Search.PostingsHighlight

    Classes

    DefaultPassageFormatter

    Creates a formatted snippet from the top passages.

    The default implementation marks the query terms as bold, and places ellipses between unconnected passages.

    ICUPostingsHighlighter

    Simple highlighter that does not analyze fields nor use term vectors. Instead it requires Lucene.Net.Index.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS.

    Passage

    Represents a passage (typically a sentence of the document).

    A passage contains NumMatches highlights from the query, and the offsets and query terms that correspond with each match.
    Note

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

    PassageFormatter

    Creates a formatted snippet from the top passages.

    Note

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

    PassageScorer

    Ranks passages found by ICUPostingsHighlighter.

    Each passage is scored as a miniature document within the document. The final score is computed as norm * ∑ (weight * tf). The default implementation is norm * BM25.

    Note

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

    WholeBreakIterator

    Just produces one single fragment for the entire text

    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.