---
title: "QueryOptions"
slug: "cloud-sdk-search-queryoptions-1539445"
abstract: "The QueryOptions interface represents the query object of a search widget item."
---
# QueryOptions

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/server` |

The query object of the search widget item. Settings related to the site visitor's search query.

## Signature

```typescript
export interface QueryOptions {
  keyphrase: string;
  operator?: Exclude<LogicalOperators, 'not'>;
}
```

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| keyphrase | string | Required.The text the site visitor enters in the search field to perform a search.Minimum length: 1.Maximum length: 100. | "athletic sneakers" |
| operator | LogicalOperators | Optional.Logical operators to use for multi-word keyphrases.Must be one of:"and""or" | "and" |
