Autocomplete
Describes the Autocomplete API handler in Optimizely Configured Commerce.
HTTP Verb – GET
URL – /api/v1/autocomplete /api/v1/autocomplete/products
Description – Query products by partial search criteria
Base – HandlerBase<GetAutocompleteProductCollectionParameter, GetAutocompleteProductCollectionResult>
Handlers –
Order | Handler | Description |
---|---|---|
500 | GetAutocompleteProductResults | Retrieves autocomplete product results from Elasticsearch using a query. If any of the following is "true", this handler is skipped. The Autocomplete "Show Products" setting equals "false"The ProductEnabled property on the parameter object equals "false"The Query property on the parameter object is blankUses the GetProductSettingsHandler handler chain to retrieve product search settings. If the CanSeeProducts property on the settings object equals "false", an error is returned (the current user cannot search for or see products). The product results are stored in the Products property on the result object. |
600 | GetAutocompleteContentResults | Retrieves autocomplete content page results from Elasticsearch. If any of the following is "true", this handler is skipped. The Autocomplete "Show Website Pages" setting equals "false"The ContentEnabled property on the parameter object equals "false"The Query property on the parameter object is blankThe content page results are stored in the Content property on the result object. |
700 | GetAutocompleteCategoryResults | Retrieves autocomplete category results from Elasticsearch. If any of the following is "true", this handler is skipped. The Autocomplete "Show Categories" setting equals "false"The CategoryEnabled property on the parameter object equals "false"The Query property on the parameter object is blankThe category results are stored in the Categories property on the result object. |
Updated over 1 year ago