This class is automatically instantiated and bound to the root of your search interface when you initialize the framework.
It is essentially a singleton that wraps the access to the SearchEndpoint endpoint to execute query, and is in charge of triggering the different query events.
This is what every component of the framework uses internally to execute query or access the endpoint.
Coveo.executeQuery this class is used.
Cancel any pending query
Return the debug info about this component.
Disable the component. Normally this means that the component will not execute handlers for the framework events (query events, for example). Component are enabled by default on creation.
Enable the component. Normally this means that the component will execute handlers for the framework events (query events, for example). Components are enabled by default on creation.
Execute a query and return a Promise of IQueryResults.
This will execute the normal query flow, triggering all the necessary query events (newQuery
All components present in the interface will act accordingly (modify the query and render results if needed).
Using the same parameters as the last successful query, fetch another batch of results. Particularly useful for infinite scrolling, for example.
Get the SearchEndpoint that is currently used by the query controller to execute query
Return the last query that was performed by the query controller
Return the last query results set.
A disabled component will not participate in the query, or listen to ComponentEvents.
Allows component to log in the dev console.
The static ID that each component need to be identified.
For example, SearchButton -> static ID : SearchButton -> className : CoveoSearchButton
Create a new query controller