Show / Hide Table of Contents

    Namespace Lucene.Net.Search.PostingsHighlight

    Highlighter implementation that uses offsets from postings lists.

    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 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.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    PassageFormatter

    Creates a formatted snippet from the top passages.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    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.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    WholeBreakIterator

    Just produces one single fragment for the entire text

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