Property description
The searchQueries property defines ElasticSearch queries used to look up objects in search areas (configured using forms).
Minimal JSON
{
"key": "",
"searchQueryTypeKey": "",
"searchQuery": ""
}{
"key": "query_empty",
"description": "empty",
"searchQueryTypeKey": "empty",
"searchQuery": "{ \u0022bool\u0022: { \u0022must\u0022 : ...}}"
}Example taken from Search Area Configuration.
One query per type per search form
A search form allows at most one query of each type (basic, advanced, empty). For the validation and fallback rules, see searchForms: Search queries per form.
A customer patch that adds its own basic, advanced, or empty query to a core domain-search form must unbind those queries in the same or an earlier patch than the core installation, otherwise the core installation fails.
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
key | Unique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey. | string | Yes |
searchQueryTypeKey | Query type. Supported options are: empty: Used for empty text searches or when retrieving all results using an asterisk *., basic: Used for text searches in Search or without the use of operators., advanced: Used for text searches in Advanced Search or using operators (e.g. AND, OR). | string | Yes |
searchQuery | Search query defined using ElasticSearch QueryDSL. For the empty and basic query, we recommend using predefined queries from Dawiso, for an advanced query, you can define your own. | string | Yes |
description | Description of the property. | string | No |
state | Current status of the asset. Supported options are: active (asset is active and visible in the environment), inactive (asset is inactive and hidden, serves as a soft delete), hidden (asset is active but hidden in the environment). | string | No |