https://ns.adobe.com/helix/shared/query
A named query that can be run against an index
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | query.schema.json |
object
(Query)
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
query | Multiple | Optional | cannot be null | Query |
hitsPerPage | integer |
Optional | cannot be null | Query |
cache | integer |
Optional | cannot be null | Query |
parameters | array |
Optional | cannot be null | Query |
filters | string |
Optional | cannot be null | Query |
The base query to run. If the value is an object or array, use QBL JSON or YAML notation
query
-
is optional
-
Type: any of the following:
string
orobject
orarray
(Details) -
cannot be null
-
defined in: Query
any of the following: string
or object
or array
(Details)
The default value is:
"*"
How many hits each page of search results should contain
hitsPerPage
-
is optional
-
Type:
integer
-
cannot be null
-
defined in: Query
integer
minimum: the value of this number must greater than or equal to: 1
The default value is:
25
How long (in seconds) search results should be cached on the CDN
cache
-
is optional
-
Type:
integer
-
cannot be null
-
defined in: Query
integer
Which URL parameters to accept in the query when served on the web
parameters
-
is optional
-
Type:
string[]
-
cannot be null
-
defined in: Query
string[]
The default value is:
[]
An ES6 template expression that determines which filters to apply
filters
-
is optional
-
Type:
string
-
cannot be null
-
defined in: Query
string