[![](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/logo.svg)](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/index.html)
- 
[Show / Hide Table of Contents](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksRequest#sidetoggle) Request message for
\[DeveloperKnowledge.SearchDocumentChunks\]\[google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks\].

##### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) SearchDocumentChunksRequest

##### Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)\<[SearchDocumentChunksRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksRequest)\> [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)\<[SearchDocumentChunksRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksRequest)\> [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)\<[SearchDocumentChunksRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksRequest)\> [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html) [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) [IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html)

##### Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

###### **Namespace** : [Google](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google).[Developers](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers).[DeveloperKnowledge](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge).[V1](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1)

###### **Assembly**: Google.Developers.DeveloperKnowledge.V1.dll

##### Syntax

    public sealed class SearchDocumentChunksRequest : IMessage<SearchDocumentChunksRequest>, IEquatable<SearchDocumentChunksRequest>, IDeepCloneable<SearchDocumentChunksRequest>, IBufferMessage, IMessage, IPageRequest

### Constructors

#### SearchDocumentChunksRequest()

##### Declaration

    public SearchDocumentChunksRequest()

#### SearchDocumentChunksRequest(SearchDocumentChunksRequest)

##### Declaration

    public SearchDocumentChunksRequest(SearchDocumentChunksRequest other)

##### Parameters

| Type | Name | Description |
|---|---|---|
| [SearchDocumentChunksRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksRequest) | other |   |

### Properties

#### Filter

Optional. Applies a strict filter to the search results. The expression
supports a subset of the syntax described at <https://google.aip.dev/160>.

While `SearchDocumentChunks` returns
\[DocumentChunk\]\[google.developers.knowledge.v1.DocumentChunk\]s, the filter
is applied to `DocumentChunk.document` fields.

Supported fields for filtering:

- `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See <https://developers.google.com/knowledge/reference/corpus-reference> for the complete list of data sources in the corpus.
- `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata.
- `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`.

STRING fields support `=` (equals) and `!=` (not equals) operators for
**exact match** on the whole string. Partial match, prefix match, and
regexp match are not supported.

TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.

You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
operators. `OR` has higher precedence than `AND`. Use parentheses for
explicit precedence grouping.

Examples:

- `data_source = "docs.cloud.google.com" OR data_source = "firebase.google.com"`
- `data_source != "firebase.google.com"`
- `update_time < "2024-01-01T00:00:00Z"`
- `update_time >= "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")`
- `uri = "https://docs.cloud.google.com/release-notes"`

The `filter` string must not exceed 500 characters; values longer than 500
characters will result in an `INVALID_ARGUMENT` error.

##### Declaration

    public string Filter { get; set; }

##### Property Value

| Type | Description |
|---|---|
| [string](https://learn.microsoft.com/dotnet/api/system.string) |   |

#### PageSize

Optional. Specifies the maximum number of results to return. The service
may return fewer than this value.

If unspecified, at most 5 results will be returned.

The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT
error.

##### Declaration

    public int PageSize { get; set; }

##### Property Value

| Type | Description |
|---|---|
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |   |

##### Implements

[IPageRequest.PageSize](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html#Google_Api_Gax_Grpc_IPageRequest_PageSize)

#### PageToken

Optional. Contains a page token, received from a previous
`SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

##### Declaration

    public string PageToken { get; set; }

##### Property Value

| Type | Description |
|---|---|
| [string](https://learn.microsoft.com/dotnet/api/system.string) |   |

##### Implements

[IPageRequest.PageToken](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html#Google_Api_Gax_Grpc_IPageRequest_PageToken)

#### Query

Required. Provides the raw query string provided by the user, such as "How
to create a Cloud Storage bucket?".

##### Declaration

    public string Query { get; set; }

##### Property Value

| Type | Description |
|---|---|
| [string](https://learn.microsoft.com/dotnet/api/system.string) |   |

##### In this article

[Back to top](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksRequest#top) Generated by **DocFX**