Property description

The defaultFacets property configures facets in a search area (search form).

Minimal JSON

{
  "type": "faceted-element",
  "enumKeyType": "",
  "enumKey": ""
}
{
  "key": "form",
  "template": {
    "formId": "form",
    "title": "title.recipe.tutorial.search",
    "defaultFacets": [
      {
        "type": "faceted-element",
        "title": "title.facet.application",
        "enumKeyType": "application",
        "enumKey": "#_nameKey",
        "elementType": "valueList",
        "orderBucketsType": "orderAttribute",
        "parameters": [
          {
            "enumKeyType": "application",
            "enumKey": "#_id",
            "valueType": "isNumber"
          },
          {
            "enumKeyType": "application",
            "enumKey": "#_orderNumber",
            "valueType": "isNumber"
          }
        ],
        "valueType": "isTranslationKey",
        "values": [
          "application.cust_recipe_tutorial_app.name"
        ],
        "subFacets": [
          {
            "type": "faceted-element",
            "title": "title.facet_objectType",
            "enumKeyType": "objectType",
            "enumKey": "#_nameKey",
            "elementType": "valueList",
            "orderBucketsType": "value",
            "valueType": "isTranslationKey",
            "values": [
              "object.type.cust_recipe_tutorial_recipe.name"
            ]
          }
        ]
      }
    ]
  }
}

Example taken from Search Area Configuration.

Nested properties

PropertyDescriptionValuesMandatory
typefaceted-elementstringYes
enumKeyTypeType of the asset that the facet filters. Supported values are:addRelation: Filter objects based on the relation the user wants to add., application: Filter objects based on the applications they belong to., attribute: Filter objects based on their attributes., creator: Filter objects based on the user who created them., domainTypes: Filter objects based on their domain types., objectType: Filter objects based on their object types., relation: Filter objects based on their relation types., space: Filter objects based on what spaces they belong to., userAttribute: Boosts objects in results based on the attribute of the user searching a keyword. For example, if the user has the “Engineering” attribute, the search prioritizes objects with the keyword “Engineering” in the specified attribute type., userRelation: Filter objects based on their user relations., workflowState: Filter objects based on the workflow states they are in.Each facet type allows the configuration of different facets. For more information, see the table below.stringYes
enumKeyKey of the filtered asset. Supported values depend on the enumKeyType. For more information, see the table below.stringYes
defaultCollapsed[Optional] Determines whether the list of facets is expanded by default.booleanNo
elementTypeType of the facet in the UI. E.g., a list of checkboxes, or values to select. Supported values are:valueList: List of checkboxes., hidden: Facet is hidden from the UI.Other possibilities (used specifically for Data Market):selectBox: Drop-down list of checkboxes., listedValues: Values as selectable tabs.stringNo
iconIdLegacy property. Use icon key instead.integerNo
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.stringNo
maxBucketCountThe maximum number of unique values shown in a facet (buckets). For example, up to 100 object types can appear as filter options.integerNo
orderBucketsReverseDetermines whether the order of buckets is reversed.booleanNo
orderBucketsTypeOrder of the search facets (filters) based on a defined order attribute. Supported values are:attributeType:packageKey_attributeTypeKey: Orders facets based on the value of the attribute., count: Orders facets based on the number of eligible results., value: Default. Orders facets according to their values.The following values are available only when specific combinations of enumKeyTypes and enumKeys are selected
Key Type — Enum Key — Order Buckets Type; application — nameKey — orderAttribute: Organizes facets based on their application orderNumber property.; domainTypes — nameKey — orderAttribute: Organizes facets based on their domain type orderNumber property.; objectType — nameKey — orderFeatureValue: Organizes facets based on the object type facet_sort_order feature and the object type name.; objectType — nameKey — orderFeatureCount: Organizes facets based on the object type facet_sort_order feature and the number of eligible results.; space — name.keyword — orderAttribute: Organizes facets based on their space sortOrder property.
stringNo
parametersInternal values used to order or identify the facet entries.jsonNo
primaryResultTextDetermines if the attribute is used as description of search results. Used mainly for full-text search or facets using text attributes.booleanNo
showSelectAllValuesCheckBoxEnables the select all facets checkbox.booleanNo
subFacetsConfigures additional facet level for more precise filtering. Subfacets are configured the same way as the parent facet. For example, if we configure a facet allowing you to select individual applications, each of these applications can also list their object types for more precise filtering. E.g.: Business Glossary, Business Term, Business Indicator, Business RulejsonNo
titleTranslation 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.stringNo
valuesKeys of assets used as facets. Supported format is asset.type.package_key_asset_key.name .string of objectsNo
valueTypeData type of the search result will be. Supported values are
, isText, isTranslationKey, None
stringNo

Supported enumKey values

There are multiple type of facets and their values that you can select. In the table below, you will find what facets are selectable for which facet type.

Facet Type= enumKeyTypeSupported Facets= enumKey
addRelationNot available for custom packages.
application#_nameKey: Facet contains names of applications., #_id: Facet contains IDs of applications. Used as a parameter., #_orderNumber: Used as a parameter to define the order of facet values.
attributeKey of any attribute type (in the package_key#attributeTypeKey format) with one of the following features
, is_search_type_text, is_search_type_bool
creator#_id: Facet contains a boolean (true/false) filter used to show only objects created by a logged-in user.
domainTypes#_nameKey: Facet contains names of domain types., #_id: Facet contains IDs of domain types. Used as a parameter., #_orderNumber: Used as a parameter to define the order of facet values.
objectType#_nameKey: Facet contains names of object types., #_id: Facet contains IDs of object types. Used as a parameter to define the order of facet values.
relationNot available for custom packages.
space#_name.keyWord: Facet contains names of spaces., #_isPublic: Facet contains a boolean (true/false) filter to show objects in a public space., #_id: Facet contains IDs of spaces. Used as a parameter, #_sortOrder: Used as a parameter to define the order of facet values.
userAttributeKey of an attribute type containing the values which are also used as user attributes. The attribute type must have the is_search_type_term feature.
userRelationKey of any user relation type (in the package_key#userRelationTypeKey format) with the is_searchable_attribute feature. Facet will contain names of users.
workflowState#_nameKey: Facet contains workflow states., #_id: Facet contains IDs of workflow states. Used as a parameter.