Property description

The searchForms property configures a search area used in Dawiso’s search feature. A search area can have its own search indexes and search queries for a personalized experience.

Minimal JSON

{
  "key": "",
  "searchIndexKey": "",
  "iconKey": "",
  "template": {}
}
{
  "key": "form",
  "iconKey": "core_default_search",
  "searchIndexKey": "recipe_tutorial_index",
  "searchQueryKeys": [
    "#_all_object_search_empty",
    "#_all_object_search_basic",
    "#_all_object_search_advanced"
  ],
  "orderNumber": 1003,
  "template": {
    "formId": "form",
    "title": "title.recipe.tutorial.search",
    "defaultFacets": [
      {
        "type": "faceted-element",
        "title": "",
        "enumKeyType": "attribute",
        "enumKey": "core#description",
        "elementType": "none",
        "orderBucketsType": "value",
        "primaryResultText": true,
        "valueType": "isText"
      }
    ]
  }
}

Example taken from Search Area Configuration.

Search queries per form

A search form has at most one search query of each type (basic, advanced, empty). A duplicate fails at runtime with INVALID_SEARCH_QUERY, naming the form, the type, and the query keys, instead of picking one of the queries.

How a runtime duplicate behaves depends on the form:

  • Domain-search form: a duplicate of any type fails every search on that form, a plain basic search included, because one domain search can use the basic, advanced, or empty query depending on the search term.
  • Form with its own handler (code list, sample data, model changes, file or script search): only a search that asks for the duplicated type fails.

At install time, a second query of the same type on a domain-search form that the package touches fails the installation, naming the form, the type, and the query keys. Other forms only produce an installation warning.

A domain-search form without a basic or empty query falls back to core_domain_search_basic / core_domain_search_empty; a missing advanced query is allowed. This fallback does not apply to forms with their own handler.

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey.stringYes
searchIndexKeyKey of the search index that the search area uses.stringYes
iconKeyKey of the icon used to visually represent the asset. Use predefined icons from Settings > Configuration > Icons, or define custom ones in the icons asset.stringYes
orderNumberOrder of the search area displayed in search.integerNo
searchQueryKeysKey of search queries that are used to look up objects in this search area.arrayNo
settingsBehavior of the search area, such as whether it searches in attribute values and highlights matches, which specialized search it represents, and how much context appears around a result.arrayNo
templateConfiguration of the visual (UI) presentation of the search form and its facets.objectYes
stateCurrent 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).stringNo