Property description
The search property in the settings section of a package configures the global search settings for the entire package.
Minimal JSON
{ "isSearchable": true }
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
isSearchable | Determines whether objects and attributes in this package are included in search results. | boolean | Yes |
applicationKey | Key of the application the search settings apply to. | string | No |
attributeTypeKey | Key of the attribute the search settings apply to. | string | No |
boost | An advanced feature that specifies the boost score used for ordering. | double | No |
description | Description of the property. | string | No |
functionKey | Key of the import function, which defines what is imported into the search and in what way. Supported values are: mr_object_import_func, mr_object_file_import_func, mr_space_import_func, model_changes_import_func, codelist_import_func, sample_data_import_func | string | No |
indexKey | Key of the ElasticSearch index to which the application will be imported. See supported indexKey values. | string | No |
objectTypeKey | Key of the object type the search settings apply to. | string | No |
searchAttachments | Determines whether attachments are searchable. | boolean | No |
spacePath | Space path including subspaces. For example, the current space is S2 and its parent space is S1, then spacePath will be S1/S2. | string | No |
tagKey | Search import mode. See supported tagKey values. | string | No |
Supported indexKey values
| Value | Description |
|---|---|
#all_object_search_index | Indexes all objects. Used when adding relations, creating links, or embedding text into another object. |
#codelist_search_index | Indexes code list keys and values for search. |
#codelist_search_index_desc_cs | Indexes Czech-language descriptions of code list entries for search. |
#codelist_search_index_desc_en | Indexes English-language descriptions of code list entries for search. |
#codelist_search_index_desc_fr | Indexes French-language descriptions of code list entries for search. |
#file_script_search_index | Indexes the content of uploaded files and scripts to make them searchable. |
#model_changes_search_index | Indexes changes to models (conceptual, logical, semantic) to support search and change tracking. |
#object_search_index | Indexes objects for default object search (by name) and for full-text search (in object content). |
#sample_data_search_index | Indexes sample datasets linked to objects, attributes, or reports for search. |
Make sure to use the hash symbol (#) for the package to look for the key globally and not only in the same package.
Supported tagKey values
| Value | Description |
|---|---|
import_file | Object attachments are imported. |
import_model_changes | DataDictionary ModelChanges are imported. |
import_no_attributes | Objects are imported without their attributes. |
import_object | Objects are imported based on the ImportFunction. |
import_space | Imports space details to be able find it in search. |
no_import | Objects are not imported. Scoped to the functionKey set in the same row. |
Model changes and search indexes
The data dictionary model changes are routed by the import_model_changes tag. A model’s changes propagate to every search index bound to its space.
boost doesn’t select the index, it serves as:
- Tie-breaker within an index: When rules tie on specificity,
boostdecides the order. Specificity ranks space+application first, then space only, then application only, then the wildcard rule (neither set). - Ranking signal: When stored on the indexed document,
boostinfluences the document’s position in search results.
To keep model changes out of one index, add a no_import rule for that index with functionKey set to model_changes_import_func:
{
"isSearchable": true,
"functionKey": "model_changes_import_func",
"tagKey": "no_import",
"indexKey": "#model_changes_search_index"
}
A row that sets tagKey to no_import without a functionKey falls back to mr_object_import_func and has no effect on model changes.
An index that is not active receives nothing, and it does not suppress the import for the other indexes.