# Google Cloud Discovery Engine V1 Client - Class SearchResultMode (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SearchResultMode.

Specifies the search result mode. If unspecified, the
search result mode defaults to `DOCUMENTS`.

Protobuf type `google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ SearchRequest \\ ContentSearchSpec

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### SEARCH_RESULT_MODE_UNSPECIFIED

    Value: 0

Default value.

Generated from protobuf enum `SEARCH_RESULT_MODE_UNSPECIFIED = 0;`

### DOCUMENTS

    Value: 1

Returns documents in the search result.

Generated from protobuf enum `DOCUMENTS = 1;`

### CHUNKS

    Value: 2

Returns chunks in the search result. Only available if the
DocumentProcessingConfig.chunking_config
is specified.

Generated from protobuf enum `CHUNKS = 2;`