Property description
The templates property configures the UI of a search area (search forms), including its facets.
Minimal JSON
{}{
"key": "form",
"template": {
"formId": "form",
"title": "title.recipe.tutorial.search",
"defaultFacets": []
}
}Example taken from Search Area Configuration.
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
defaultFacets | Configures the search area’s facets used to filter search results. You can define multiple facet levels. | json | No |
formId | Key of the search form. | string | No |
resultTextLinesAfter | Number of text lines (rows) which appear after a search result. Usually, 1 is preferred. | integer | No |
resultTextLinesBefore | Number of text lines (rows) which before a highlighted term in the search result. Usually, 2 is preferred. | integer | No |
sort | Defines how facets are sorted in the search form. | json | No |
title | Translation key of the title. Define the key in translations to specify how the text is displayed in the UI. Unlike the name property, if you use a specific string of text for the title, this text will appear with the package key. For example, Comment Section will be displayed as package_key_comment section. | string | No |