Docs
On this page
concept3 min readApplication: Platform

Global search

How global search indexes tables in Elasticsearch, groups its results, ranks them and decides who can use it.

Global search is the search that users open from the magnifying glass at the top right of every page. This page explains how administrators control what it finds, how results are grouped and ranked, and who sees it.

The magnifying glass that opens global search in the header.

How it works

Global search runs on Elasticsearch. Each table you configure is copied into a search index, and searches run against that index, not against the database. Elasticsearch is switched on for an instance by the ELASTICSEARCH_AUTH_APIKEY setting. Without it, indexing stops and searches report that search is unavailable. There is no fallback to a database search.

Only tables with an active global search configuration are searched. Servicely ships configurations for Action, Action result, Announcement, Catalog item, Classification, CMDB service, Group, Incident, Knowledge, Knowledge base and User. Some applications add more, such as Interaction and ITSM request.

Indexing runs in the background. The “Global search - sync scheduler” job queues every active configuration each minute, and other global search jobs index and delete documents every ten seconds. Global search sync state shows each table’s progress and errors.

Search respects realms. On a realm-separated table, results are filtered to the user’s realm before they are ranked.

What is indexed

A global search configuration names a Table and its Search fields. Each search field has a Boost, a multiplier that makes matches in that field count more. A boost of 2.0 makes a match twice as important. A Condition limits which records are indexed. A Condition script does the same with a script, but slows synchronisation, so use it only when a condition cannot express the rule.

A configuration covers its own table only. Records stored in a child table need a configuration for that child table.

Matching and ranking

Setting Effect
Fuzziness Typo tolerance. AUTO adjusts to the length of each term, or 0 to 2 allows that many character differences.
Prefix length The number of leading characters that must match exactly before fuzzy matching applies.
Minimum should match How many terms of a multi-term query must match, in the form X<Y%.
Recency Boost Whether newer records rank higher among results of similar relevance. Leave it empty to follow the instance default, or disable it for reference content such as knowledge.
Vector search Enabled, Fields and Dimensions Turn the chosen fields into vector embeddings for semantic search. Dimensions must match the embedding model.

The instance defaults for recency come from elasticsearch.recency.enabled (true), elasticsearch.recency.offset (7d), elasticsearch.recency.scale (180d) and elasticsearch.recency.decay (0.7). Records updated within the offset count as equally fresh. The oldest records rank no lower than the decay multiplier.

How results are grouped

Results appear in groups set by Global search result configuration. Each group has a Title, a source Table, a Tab field that splits it into tabs, and a Primary Field and Secondary Field shown in each row.

Group Contents
Work Records of the Work table and its child tables, in a tab per record type.
Catalog Catalog items, in a tab per category.
Knowledge base Knowledge articles, in a tab per classification.
Other Every other configured table.

The application property system.search.role_required names a role needed to see the search. It is blank by default, so every user sees it. Set it to a role such as platform_agent to hide the search from everyone else.

Last updated 18 October 2026commit 7b27e70aada9Chris Jones
Back to top