QuanticDidYouMean

The QuanticDidYouMean component is responsible for handling query corrections. When a query returns no result but finds a possible query correction, the component either suggests the correction or automatically triggers a new query with the suggested term.

Example

<c-quantic-did-you-mean engine-id={engineId} disable-query-auto-correction={disableQueryAutoCorrection} query-correction-mode="next"></c-quantic-did-you-mean>

Properties

Property Attribute Description Type Default

engineId (required)

engine-id

The ID of the engine instance the component registers to.

string

disableQueryAutoCorrection

disable-query-auto-correction

Whether to disable automatically applying corrections for queries that would otherwise return no results. When disableQueryAutoCorrection is false, the component automatically triggers a new query using the suggested term. When disableQueryAutoCorrection is true, the component returns the suggested term without triggering a new query.

boolean

false

queryCorrectionMode

query-correction-mode

Defines which query correction system to use. legacy: Query correction is powered by the legacy index system. This system relies on an algorithm using solely the index content to compute the suggested terms. next: Query correction is powered by a machine learning system, requiring a valid query suggestion model configured in your Coveo environment to function properly. This system relies on machine learning algorithms to compute the suggested terms. The legacy system will send two requests to the API to get the suggestions, while the next system will send one request.

string

'legacy'

XML Configuration File Elements

The following XML configuration file elements apply (see XML Configuration File Elements).

Metadata Value

apiVersion

53.0

isExposed

false

Associated Use Cases

This component is also relevant in the following use case: