A scoped and simplified part of the headless state that is relevant to the DidYouMean controller.
Executes a search using the suggested query correction.
Typically, you only call this method when state.hasQueryCorrection is true and state.wasAutomaticallyCorrected is false.
When this is the case, you could call this method when the user clicks a link to search with the suggested query correction rather than
with the query they originally submitted.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The
DidYouMeancontroller is responsible for handling query corrections.