# Interface IQuerySuggestRequest

The IQuerySuggestRequest interface describes a request to the Coveo Machine Learning service query suggest.

## Index

### Properties

- actionsHistory
- context
- count
- enableWordCompletion
- isGuestUser
- locale
- pipeline
- q
- referrer
- searchHub
- tab
- timezone
- visitorId

## Properties

### Optional actionsHistory

actionsHistory: any[]

- Defined in rest/QuerySuggest.ts :92

Specfies the actions history which represents the past actions a user made. It is generated by the page view script (https://github.com/coveo/coveo.analytics.js)

### Optional context

context: IStringMap<any>

- Defined in rest/QuerySuggest.ts :68

Specifies the context to use for the request.

### Optional count

count: number

- Defined in rest/QuerySuggest.ts :58

Specifies the number of suggestions that the Coveo Machine Learning service should return.

Default value is `5`.

### Optional enableWordCompletion

enableWordCompletion: boolean

- Defined in rest/QuerySuggest.ts :87

Specifies whether to attempt to complete the last word of the current "q" parameter and boost the ranking score of the resulting expression so that it is returned as the first query suggestion.

### Optional isGuestUser

isGuestUser: boolean

- Defined in rest/QuerySuggest.ts :108

Whether the current user is anonymous. This can be specified when configuring the SearchEndpoint.

### Optional locale

locale: string

- Defined in rest/QuerySuggest.ts :82

The locale of the current user. Will typically match the "language" parameter that is used to perform standard queries.

### Optional pipeline

pipeline: string

- Defined in rest/QuerySuggest.ts :63

Specifies the pipeline to use for the request.

### q

q: string

- Defined in rest/QuerySuggest.ts :47

Specifies the query / word for which to get completion.

### Optional referrer

referrer: string

- Defined in rest/QuerySuggest.ts :77

Specifies the third level of origin of the request, typically the URL of the page that linked to the search interface from which the request originates (e.g., in JavaScript, this would correspond to the `document.referrer` value).

### Optional searchHub

searchHub: string

- Defined in rest/QuerySuggest.ts :51

Specifies the search hub for which to get suggestions.

### Optional tab

tab: string

- Defined in rest/QuerySuggest.ts :72

Specifies the second level of origin of the request, typically the identifier of the selected tab from which the request originates.

### Optional timezone

timezone: string

- Defined in rest/QuerySuggest.ts :97

The tz database identifier of the time zone to use to correctly interpret dates in the query expression and result items.

### Optional visitorId

visitorId: string

- Defined in rest/QuerySuggest.ts :103

A GUID representing the current user, who can be authenticated or anonymous. This GUID is normally generated by the usage analytics service and stored in a non-expiring browser cookie.

deprecated

### Hierarchy

- IQuerySuggestRequest