# OfficeDocumentSearchResult

Search results with aggregated page citation information.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OfficeDocumentSearch.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L98)

**Modifiers**

sealed

Search results with aggregated page citation information.

## Inheritance

- object
- OfficeDocumentSearchResult

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

### Returned or exposed by 2

- Extension method [OfficeDocumentReadResult.Search](/api/reader/officeimo-reader-officedocumentreadresult/#extension-search-officeimo-reader-officedocumentreadresult-string-officeimo-reader-officedocumentsearchoptions-threading-cancellationtoken)
- Method [OfficeDocumentReadResultExtensions.Search](/api/reader/officeimo-reader-officedocumentreadresultextensions/#method-search-officeimo-reader-officedocumentreadresult-string-officeimo-reader-officedocumentsearchoptions-threading-cancellationtoken)

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeDocumentSource Source { get; }` [#](#property-source)

[OfficeDocumentSearch.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L98)

Source document that was searched.

`public string Query { get; }` [#](#property-query)

[OfficeDocumentSearch.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L101)

Original query text.

`public int TotalPageCount { get; }` [#](#property-totalpagecount)

[OfficeDocumentSearch.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L104)

Total physical page count known for the read operation.

`public IReadOnlyList<OfficeDocumentSearchHit> Hits { get; }` [#](#property-hits)

[OfficeDocumentSearch.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L110)

Matching occurrences in normalized source order, or for a ranked search one hit per block in descending score order.

`public IReadOnlyList<int> PageNumbers { get; }` [#](#property-pagenumbers)

[OfficeDocumentSearch.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L113)

Distinct one-based physical pages containing matches.

`public bool MaximumResultsReached { get; }` [#](#property-maximumresultsreached)

[OfficeDocumentSearch.cs:118](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L118)

True when the configured maximum result count was reached and the search stopped at that ceiling.

`public bool WorkLimitReached { get; }` [#](#property-worklimitreached)

[OfficeDocumentSearch.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L121)

True when indexing or ranked query evaluation stopped at a work limit, so additional hits may be missing.

`public bool Ranked { get; }` [#](#property-ranked)

[OfficeDocumentSearch.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/OfficeDocumentSearch.cs#L124)

True when the hits are BM25-ranked; false for literal and regular-expression results, including a ranked request that fell back to literal search.

<!-- PowerForge markdown artifact sha256:4DAF0E3881C9AFDC03B64AFDEE0935E33D9C6D4B4D880C748A17650340FD9CE0 -->
