Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDocumentSearchOptions

OfficeIMO.Reader

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

Controls normalized block search in a document read result.

Inheritance

  • object
  • OfficeDocumentSearchOptions

Usage

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

Accepted by parameters 2

Constructors

public OfficeDocumentSearchOptions() #

Properties

public bool MatchCase { get; set; } #

When true, uses case-sensitive ordinal matching.

public bool UseRegularExpressions { get; set; } #

When true, interprets the query as a .NET regular expression. The default preserves literal search.

public TimeSpan RegularExpressionTimeout { get; set; } #

Maximum time allowed for one regular-expression match attempt. Must be positive and finite; defaults to two seconds.

public bool WholeWord { get; set; } #

When true, accepts matches surrounded by non-word characters only.

public int MaximumResults { get; set; } #

Maximum number of occurrences returned. Default: 1,000.

public OfficeDocumentSearchMode Mode { get; set; } #

Literal occurrence search (the default) or BM25-ranked word search. Ranked mode returns one hit per matching block, best first. When a complete ranked search finds no hits, the search falls back to literal matching. OfficeDocumentSearchOptions.UseRegularExpressions takes precedence; OfficeDocumentSearchOptions.WholeWord does not apply because ranked search always matches whole words.

public OfficeDocumentRankingOptions Ranking { get; set; } #

Ranking, query and resource settings used when OfficeDocumentSearchOptions.Mode is OfficeDocumentSearchMode.Ranked.