Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDocumentSearchHit

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Core
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

One query occurrence and its source/page locations.

Inheritance

  • object
  • OfficeDocumentSearchHit

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Properties

public OfficeDocumentBlock Block { get; } #

Normalized source block containing the occurrence.

public int StartIndex { get; } #

Zero-based occurrence offset in OfficeDocumentBlock.Text.

public int Length { get; } #

Occurrence length.

public IReadOnlyList<OfficeDocumentPageLocation> Pages { get; } #

Page-like locations that contain the matching source block fragment.

public double? Score { get; } #

BM25 relevance score for ranked hits; null for literal and regular-expression hits.

public IReadOnlyList<OfficeDocumentSearchHighlight> Highlights { get; } #

Matched ranges in OfficeDocumentBlock.Text. A literal hit has its one occurrence; a ranked hit has every matched word and phrase, and may have none when only the block's heading path matched.