SearchParameterManager (Search Engine) (Deprecated)
SearchParameterManager (Search Engine) (Deprecated)
|
|
Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library. |
The SearchParameterManager controller allows restoring parameters that affect the results from, for example, a url.
Methods
synchronize
Updates the search parameters in state with the passed parameters and executes a search. Unspecified keys are reset to their initial values.
Parameters
-
parameters:
SearchParametersThe search parameters to synchronize.
subscribe
Adds a callback that’s invoked on state change.
Parameters
-
listener:
() => voidA callback that’s invoked on state change.
Returns Unsubscribe: A function to remove the listener.
Attributes
state
The state relevant to the SearchParameterManager controller.
Properties
-
parameters:
SearchParametersThe parameters affecting the search response.
Initialize
buildSearchParameterManager
Creates a SearchParameterManager controller instance.
Parameters
-
engine:
SearchEngineThe headless engine.
-
props:
SearchParameterManagerPropsThe configurable
SearchParameterManagerproperties.
Returns SearchParameterManager
SearchParameterManagerProps
The configurable SearchParameterManager properties.
Properties
-
initialState:
SearchParameterManagerInitialStateThe initial state that should be applied to the
SearchParameterManagercontroller.
SearchParameterManagerInitialState
The initial state that should be applied to the SearchParameterManager controller.
Properties
-
parameters:
SearchParametersThe parameters affecting the search response.
Related types
SearchParameters
Properties
-
aq?:
stringThe advanced query expression.
-
cf?:
Record<string, string[]>A record of the category facets, where the key is the facet id, and value is an array containing the parts of the selected path.
-
cq?:
stringThe constant query expression.
-
debug?:
booleanDetermines whether to return debug information for a query.
-
df?:
Record<string, DateRangeRequest[]>A record of the date facets, where the key is the facet id, and value is an array containing the date ranges to request.
-
enableQuerySyntax?:
booleanWhether to interpret advanced Coveo query syntax in the query.
-
f?:
Record<string, string[]>A record of the facets, where the key is the facet id, and value is an array containing the selected values.
-
firstResult?:
numberA zero-based index of the first result.
-
nf?:
Record<string, NumericRangeRequest[]>A record of the numeric facets, where the key is the facet id, and value is an array containing the numeric ranges to request.
-
numberOfResults?:
numberThe number of results to return.
-
q?:
stringThe query.
-
sf?:
Record<string, string[]>A record of the static filters, where the key is the static filter id, and value is an array containing the selected static filter captions.
-
sortCriteria?:
stringThe sort expression to order returned results by.
-
tab?:
stringThe active tab id.
Unsubscribe
Call signatures
-
(): void