Suggestion Candidates
Besides rule-based generation of suggestions, it is possible to ingest suggestion candidates into Ecommerce Search through the API using the /api/ingestion/segments/{segmentId}/suggestion-candidates
endpoints.
As described in the page on suggestions, suggestion candidates are turned into suggestions by Ecommerce Search, providing suggestions for searches to customers searching with Ecommerce Search.
To create suggestion candidates use the following code sample:
The CreateSuggestionCandidateModel has 3 required fields:
Datasource
: Source of the candidates, it could beuser_searches
.ExternalId
: ID to find the candidate again.SuggestionText
: Suggestion that should be created, examples include "watermelon" or "big watermelon".
If candidates are not needed anymore they can be deleted with the DeleteSuggestionCandidateAsync method.