Autocomplete

The Autocomplete method is to be called when users have typed part of the keyword. The endpoint returns suggestions from HawkSearch.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Autocomplete params

FacetSelections
object

Selected facets names with values

string

Landing page Custom URL

string

Sort by a filed name

string

Set sorting set evaluation override

int32
string

Nested Id

string

API Client Guid

string

Search term. If term isn’t included we search everything

boolean

Flag set to true will display elements in a preview mode. Flag set to false will display live data

int32
enum

To control the ability of returning numbers of rows from Elastic Search, both ‘Type’ and ‘ProductCount’ parameters needs to be set
e.g.: Type=Category, ProductCount=2. Search response will return max 2 items for category suggestions.

Allowed:
int32

The maximum number of results to return for selected ‘Type’ (see above)

boolean

Flag set to true will display also full Document object from Elastic for Products and Content suggestions

FieldOverride
array of strings

An array of field names that Elastic Search will return in a response

FieldOverride
SmartBar
object

Smart Bar turns On/Off:
'Boost and Bury', 'Visibility Rules', 'Presonalized Boost', 'Popularity Boost', 'Item Pin Processor' , 'KeywordReplacement'

ClientData
object
string

Search a given index

string

Custom search query

BoostQueries
array of objects
BoostQueries
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json