Add a table to global search
Create a global search configuration so the records of a table are indexed and found by global search.
Add a table to global search when users need to find its records from the search at the top of every page. Administrators do this for custom tables, and for shipped tables that have no configuration.
Before you begin
- You need the
administratorrole. - Global search must be running on the instance. It needs Elasticsearch, which is enabled by
ELASTICSEARCH_AUTH_APIKEY. See Global search. - Choose the fields users will search on, and which matter most.
- Records in a child table are indexed only by a configuration for that child table. Plan one configuration per table.
Steps
-
Go to Administration → Global search → Global search configuration and select New.
-
In Table, select the table that holds the records.
-
Optionally, set a Condition to index only some records, such as open ones. Prefer a condition to a Condition script, which slows synchronisation.
-
Save, then add rows under Search fields. For each, choose the Field and a Boost. A higher boost makes matches in that field rank higher.
-
Optionally, tune Fuzziness, Prefix length, Minimum should match and the recency settings. Leave them empty to use the defaults.
-
For semantic search, select vector search Enabled, choose the Fields to embed and set Dimensions to match the embedding model. Reduce Batch size from its default of 200 to between 10 and 50.
-
Select Active and save.
-
Select Validate Mapping to check the index mapping for the table.
-
Go to Administration → Global search → Global search sync state and check that the table is processing without errors.
Result
Within a few minutes the table’s records are indexed, and new and changed records follow automatically. They appear in the search results in the group set by the global search result configuration: Work, Catalog, Knowledge base, or Other for any other table. If you change the search fields later, the configuration shows that its changes are not yet applied to the index. Select Reset Sync to reset the table’s sync state so it synchronises again.