DocsAsset ManagementGlobal Search

Global Search

Full-text search across every asset: the Search page (Workspace → Search, /dashboard/search) with ranked results, facets and highlighted matches, and the command palette (⌘K) for jumping to an asset or a page.


Search Page

Open Search in the Workspace section of the sidebar, or choose "Search all assets for …" in the command palette. Type at least 2 characters (at most 200): after a 300 ms pause the query is written to the URL as ?q= and the results load, sorted by relevance. The line above the results shows the number of results, the query time in milliseconds and the "sorted by relevance" chip. With fewer than 2 characters the page shows "Enter at least 2 characters to search".

Global search with facets by type, environment, team and region

What Is Matched

Searches run on the Elasticsearch asset index. A result matches when at least one of these clauses matches:

  • Fuzzy match (typos tolerated) on name, display name, discovery zone name and environment name; name weighs most
  • Exact match on UID, external ID, tags, owner, team and region
  • An exact name match gets the highest boost
  • Prefix of the last word on name and display name ("database-12" finds "database-12345")
  • Part of a word inside the name, case-insensitive ("base" finds "database")

Note: Labels and discovery attributes are not indexed, so they are not searchable. Only active assets are returned.

Filters (Facets)

The Filters panel on the left lists, for the current query, the asset types, environment types (the collector type of the discovery zone, e.g. kubernetes, azure, gcp, vmware), teams and regions of the matching assets with their counts. Tick a value to keep only those results; tick it again to remove it. Only one value per group can be active. Each group shows its first 8 values and a "Show all (N)" link. "Clear" removes every facet. Facets are kept in the URL (type, environment_type, team, region), and changing the query resets them.

Result Cards

Each result shows the name (linked to the asset detail page), the asset type, an active/inactive badge and the relevance score; below it the host the asset runs on ("on <host>", linked), the discovery zone, the deployment environment, region, team, owner and the relative last seen time.

  • Matched words are highlighted in the name and in up to three other fields (for example "uid:" or "tags:"). Matches found only thanks to typo tolerance are shown without highlighting
  • Up to 6 tags are shown, then "+N more"
  • Results are paged 20 at a time with Previous / Next ("Page X of Y"); the page number is kept in the URL
  • No match: "No results found" with a hint to try other keywords or remove filters

Fallback Without Elasticsearch

If Elasticsearch is not reachable the backend falls back to a database search and the page shows the badge "Basic search (Elasticsearch unavailable)". The fallback is a case-insensitive "contains" match on name, display name, UID, owner and team, ordered by name; it has no facets, no highlighting and every score is 1.0.

Warning: The fallback only pages up to an offset of 1,000 results and reports the size of the current page as the total, so use more specific terms when it is active.

Command Palette

Press ⌘K (Ctrl+K), press / outside a text field, or click "Search assets and pages…" in the top bar to open the command palette. It filters the navigation pages by name, looks up assets after 2 characters (up to 6, with type, discovery zone and environment) and opens the selected asset in the quick-look drawer. "Search all assets for …" opens the Search page with that query. It also offers the theme switch and, for managers, "Add discovery zone".

Keeping the Index Current

Changes to assets and dependencies are sent to the index when their database transaction commits, in batches; a change of a related object (for example a zone rename) re-indexes the assets that copy that field. An Elasticsearch outage never fails a database write. The rebuild_search_index management command rebuilds the index from the database.

API

Every endpoint requires an authenticated user. The search endpoint answers {query, total, took_ms, results, aggregations}; aggregations holds by_type, by_environment_type, by_environment, by_team and by_region buckets ({key, doc_count}).

  • GET /api/v1/search/?q=<text>: 2–200 characters. Filters: type, environment (deployment environment id), discovery_zone (zone id), environment_type, team, owner, region, tags (repeatable), is_active (true/false; default active only) or include_inactive=true. Paging: size (default 20, max 100) and from (offset, at most 9,900)
  • GET /api/v1/search/suggest/?q=<prefix>&size=<n>: name suggestions for a prefix of at least 2 characters (size default 10, max 25)
  • GET /api/v1/search/dependencies/?q=<text>: full-text search of dependencies by source and target name or UID, endpoint and type; returns 503 when Elasticsearch is unavailable
  • GET /api/v1/search/stats/: asset counts by type, environment, team and region (used for the Team and Region filters of the inventory)
  • A missing, too short or too long query, or an invalid size or from, returns 400
curl -H "Authorization: Bearer $TOKEN" \
  "https://idp.example.com/api/v1/search/?q=web-server&type=vm&size=20&from=0"