Instances a new search params.
Static
fromCreates a new search parameters object.
Optional
source: Partial<RequestFeedParams> | SearchParamsThe search parameters or other SearchParams instance.
Optional
copy: booleanWhether to copy the search parameters.
Gets the published-min
parameter.
Sets and gets the published-min
parameter.
The new date.
Removes the published-min
parameter.
Optional
min: MaybeStringRemoves the published-max
parameter.
Gets the published-max
parameter.
Sets and gets the published-max
parameter.
RequestFeedParams.published-max
The new date.
Optional
max: MaybeStringGets the updated-min
parameter.
Sets and gets the updated-min
parameter.
The new date.
Removes the updated-min
parameter.
Optional
min: MaybeStringGets the updated-max
parameter.
Sets and gets the updated-max
parameter.
The new date.
Removes the updated-max
parameter.
Optional
max: MaybeStringGets the orderby
parameter.
Sets and gets the orderby
parameter.
The value assigned will be the default one: updated
.
Sets and gets the orderby
parameter.
The new order.
Optional
order: OGets the q
parameter.
Sets and gets the q
parameter.
The new query.
Removes the q
parameter.
Optional
query: MaybeStringGets the alt
parameter.
Sets and gets the q
parameter.
Sets and gets the alt
parameter.
The value assigned will be the default one: json
.
Gets the alt
parameter.
Optional
type: Maybe<Alt>Creates a new object with only the defined parameters.
Since 1.2 undefined or null values deletes the property from the source. Use source
instead.
var params = new SearchParams();
params.query("title") // { source: { q: 'title' } }
params.max(9) // { source: { q: 'title', "max-results": 12 } }
params.query(undefined) // { source: { q: undefined, "max-results": 12 } }
var source = params.toDefined(); // { "max-results": 12 }
The class for managing search parameters.