# EmailStoreContentQuery

Bounded, resumable query over summary and selected item content.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStoreContentQuery.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L19)

**Modifiers**

sealed

Bounded, resumable query over summary and selected item content.

## Inheritance

- object
- EmailStoreContentQuery

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

### Accepted by parameters 1

- Method [EmailStoreSession.SearchContent](/api/email/officeimo-email-store-emailstoresession/#method-searchcontent-officeimo-email-store-emailstorecontentquery-iprogress-officeimo-email-store-emailstorecontentsearchprogress-threading-cancellationtoken) parameter `query`

Filter members 

Show inherited

## Constructors

EmailStoreContentQuery 2 overloads

`public EmailStoreContentQuery(IEnumerable<string> terms, EmailStoreContentSearchFields fields = All, EmailStoreContentMatchMode matchMode = AllTerms, EmailStoreQuery? metadataFilter = null, int maxItemsScanned = 10000, int maxResults = 100, long maxDecodedPropertyBytesPerItem = 16777216, int maxSearchableCharactersPerItem = 2000000, int snippetCharacters = 240, int progressInterval = 100, bool continueOnItemError = true, EmailStoreContentSearchCheckpoint? resumeFrom = null)` [#](#member-2a1365e65450946f3c08d985)

[EmailStoreContentQuery.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L19)

Creates a bounded content query.

Parameters

**terms System.Collections.Generic.IEnumerable<string> required**

**fields OfficeIMO.Email.Store.EmailStoreContentSearchFields = All optional**

**matchMode OfficeIMO.Email.Store.EmailStoreContentMatchMode = AllTerms optional**

**metadataFilter OfficeIMO.Email.Store.EmailStoreQuery? = null optional**

**maxItemsScanned int = 10000 optional**

**maxResults int = 100 optional**

**maxDecodedPropertyBytesPerItem long = 16777216 optional**

**maxSearchableCharactersPerItem int = 2000000 optional**

**snippetCharacters int = 240 optional**

**progressInterval int = 100 optional**

**continueOnItemError bool = true optional**

**resumeFrom OfficeIMO.Email.Store.EmailStoreContentSearchCheckpoint? = null optional**

`public EmailStoreContentQuery(IEnumerable<string> terms, IEmailStoreBodyTextProjector? bodyTextProjector, EmailStoreContentSearchFields fields = All, EmailStoreContentMatchMode matchMode = AllTerms, EmailStoreQuery? metadataFilter = null, int maxItemsScanned = 10000, int maxResults = 100, long maxDecodedPropertyBytesPerItem = 16777216, int maxSearchableCharactersPerItem = 2000000, int snippetCharacters = 240, int progressInterval = 100, bool continueOnItemError = true, EmailStoreContentSearchCheckpoint? resumeFrom = null)` [#](#member-5375af9a9048d9ce60eb7b20)

[EmailStoreContentQuery.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L24)

Creates a bounded content query with an optional format-owned body projection.

Parameters

**terms System.Collections.Generic.IEnumerable<string> required**

**bodyTextProjector OfficeIMO.Email.Store.IEmailStoreBodyTextProjector? required**

**fields OfficeIMO.Email.Store.EmailStoreContentSearchFields = All optional**

**matchMode OfficeIMO.Email.Store.EmailStoreContentMatchMode = AllTerms optional**

**metadataFilter OfficeIMO.Email.Store.EmailStoreQuery? = null optional**

**maxItemsScanned int = 10000 optional**

**maxResults int = 100 optional**

**maxDecodedPropertyBytesPerItem long = 16777216 optional**

**maxSearchableCharactersPerItem int = 2000000 optional**

**snippetCharacters int = 240 optional**

**progressInterval int = 100 optional**

**continueOnItemError bool = true optional**

**resumeFrom OfficeIMO.Email.Store.EmailStoreContentSearchCheckpoint? = null optional**

## 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 IReadOnlyList<string> Terms { get; }` [#](#property-terms)

[EmailStoreContentQuery.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L85)

Case-insensitive terms.

`public EmailStoreContentSearchFields Fields { get; }` [#](#property-fields)

[EmailStoreContentQuery.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L87)

Fields searched.

`public EmailStoreContentMatchMode MatchMode { get; }` [#](#property-matchmode)

[EmailStoreContentQuery.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L89)

Term-combination mode.

`public EmailStoreQuery? MetadataFilter { get; }` [#](#property-metadatafilter)

[EmailStoreContentQuery.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L91)

Optional cheap summary filter evaluated before item content is decoded.

`public int MaxItemsScanned { get; }` [#](#property-maxitemsscanned)

[EmailStoreContentQuery.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L93)

Maximum item references processed in this batch.

`public int MaxResults { get; }` [#](#property-maxresults)

[EmailStoreContentQuery.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L95)

Maximum matches returned in this batch.

`public long MaxDecodedPropertyBytesPerItem { get; }` [#](#property-maxdecodedpropertybytesperitem)

[EmailStoreContentQuery.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L97)

Maximum decoded property bytes allowed for one selective item read.

`public int MaxSearchableCharactersPerItem { get; }` [#](#property-maxsearchablecharactersperitem)

[EmailStoreContentQuery.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L99)

Maximum searchable characters retained across fields of one item.

`public int SnippetCharacters { get; }` [#](#property-snippetcharacters)

[EmailStoreContentQuery.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L101)

Maximum snippet characters.

`public int ProgressInterval { get; }` [#](#property-progressinterval)

[EmailStoreContentQuery.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L103)

Scanned-item interval between progress notifications.

`public bool ContinueOnItemError { get; }` [#](#property-continueonitemerror)

[EmailStoreContentQuery.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L105)

Whether corrupt or over-limit items are diagnosed and skipped.

`public EmailStoreContentSearchCheckpoint? ResumeFrom { get; }` [#](#property-resumefrom)

[EmailStoreContentQuery.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L107)

Optional checkpoint from a previous batch.

`public IEmailStoreBodyTextProjector? BodyTextProjector { get; }` [#](#property-bodytextprojector)

[EmailStoreContentQuery.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Search/EmailStoreContentQuery.cs#L109)

Optional format-owned projection. Null retains the built-in transport-only text extraction.

<!-- PowerForge markdown artifact sha256:62D1ABEBD46EC276BBAF364B657516F04383882D441FA45F1FC5E4BBC24A0F73 -->
