Product DocsMenu

Coveo Platform 6.5 >
Developer Help > Search Interface API > Basic Concepts > About SearchControl and QueryControl

About SearchControl and QueryControl

The SearchControl control is responsible of synchronizing the interactions between all the controls of the search interface. It also keeps track of the current query and fires the various events that cause other controls to perform various tasks. There is always only one SearchControl per search interface; however, it is possible to have more than one search interface per page (this is useful when using search Web parts).

A single search interface can display results from several queries; therefore making it possible to search several kinds of items from the same UI (for example, combining a People Search feature with a more general document search). Every query is performed by the QueryControl control. When the user performs a search, each QueryControl uses the global query (provided by SearchControl), adds additional information (for example, restricting to people results) and sends the query to the server in order to retrieve the results, which are then displayed.