https://ns.adobe.com/xdm/datatypes/sitesearch
Information about site content search activity.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | datatypes/sitesearch.schema.json |
- Site Search
https://ns.adobe.com/xdm/datatypes/sitesearch
- Extensibility base schema
https://ns.adobe.com/xdm/common/extensible
- Extensibility base schema
{
"xdm:filter": [
{
"xdm:attribute": "Device",
"xdm:value": [
"Mobile",
"Phone"
],
"xdm:isRange": false
},
{
"xdm:attribute": "Price",
"xdm:value": [
"900",
"1000"
],
"xdm:isRange": true
},
{
"xdm:attribute": "price",
"xdm:value": [
"800",
"1000"
],
"xdm:isRange": true
}
],
"xdm:sort": [
{
"xdm:attribute": "price",
"xdm:order": "DESC"
},
{
"xdm:attribute": "relevance",
"xdm:order": "ASC"
}
],
"xdm:query": "Iphone 13"
}
{
"xdm:query": "Iphone 13",
"xdm:suggestions": [
"iphone 11",
"iphone 12",
"airpods"
],
"xdm:numberOfResults": 35
}
Property | Type | Required | Defined by |
---|---|---|---|
xdm:filter | reference | Optional | Site Search (this schema) |
xdm:numberOfResults | integer |
Optional | Site Search (this schema) |
xdm:query | string |
Optional | Site Search (this schema) |
xdm:sort | reference | Optional | Site Search (this schema) |
xdm:suggestions | string[] |
Optional | Site Search (this schema) |
* |
any | Additional | this schema allows additional properties |
Filters applied to limit search results.
xdm:filter
-
is optional
-
type: reference
-
defined in this schema
Array type: reference
All items must be of the type:
Number of search results.
xdm:numberOfResults
- is optional
- type:
integer
- defined in this schema
integer
The terms searched for.
xdm:query
- is optional
- type:
string
- defined in this schema
string
Specification for how search results should be sorted.
xdm:sort
-
is optional
-
type: reference
-
defined in this schema
Array type: reference
All items must be of the type:
Suggested search terms.
xdm:suggestions
-
is optional
-
type:
string[]
-
defined in this schema
Array type: string[]
All items must be of the type:
string
Property | Type | Group |
---|---|---|
xdm:attribute | string |
https://ns.adobe.com/xdm/datatypes/sitesearch#/definitions/sortItem |
xdm:isRange | boolean |
https://ns.adobe.com/xdm/datatypes/sitesearch#/definitions/filterItem |
xdm:order | enum |
https://ns.adobe.com/xdm/datatypes/sitesearch#/definitions/sortItem |
xdm:value | string[] |
https://ns.adobe.com/xdm/datatypes/sitesearch#/definitions/filterItem |
An attribute used to sort items in search results.
xdm:attribute
- is optional
- type:
string
- defined in this schema
string
When true, values indicate endpoints of an acceptable range of values.
xdm:isRange
- is optional
- type:
boolean
- defined in this schema
boolean
The order in which to return search results
xdm:order
- is optional
- type:
enum
- defined in this schema
The value of this property must be equal to one of the known values below.
Value | Description |
---|---|
ASC |
Ascending order |
DESC |
Descending order |
RELEVANCE |
Sort items by relevance |
Attribute values used to determine which items will be included in search results.
xdm:value
-
is optional
-
type:
string[]
-
defined in this schema
Array type: string[]
All items must be of the type:
string