About the query pipeline routing algorithm
About the query pipeline routing algorithm
When a query is sent to the Search API, a routing algorithm is executed to determine which query pipeline in the target Coveo organization will process this query.
The following diagram illustrates the process of a query being routed to a query pipeline.[1]

When a query is sent to the Search API:
-
If the search token enforces a pipeline, go to Step 4 using the search token-enforced pipeline (bypassing its condition, if any).
-
Otherwise, if the search interface enforces a pipeline, go to Step 4 using the search interface-enforced pipeline (bypassing its condition, if any).
-
Otherwise, for each pipeline that has a condition in the Coveo organization:
|
Notes
|
Specify which pipeline a query uses
You can use the pipeline
query parameter to specify which pipeline a query will use:
-
Its value is the
name
of the pipeline. -
When no value is specified, a default pipeline is used.
The following query will use the pipeline mypipeline
:
GET /rest/search?q=@uri&pipeline=mypipeline HTTP/1.1
Because no value is specified for the pipeline
parameter in the following query, the default pipeline is used:
GET /rest/search?q=@uri HTTP/1.1