cardinal

Global search

Find any Record you can read from one search box.

Press Ctrl+K (Cmd+K on a Mac) anywhere in the desk and type. The palette offers pages, RecTypes and your recent Records, and its last entry is "Search for ...". Ctrl+G opens the palette with only that search entry.

The results page at /desk/search?q=... has one card per RecType, with the matches marked. Show more loads the next 10 of a RecType.

Results include only Records you can read. The permission check runs inside the search query.

What is searched

A RecType is searched when it is listed in Global Search Settings and has fields marked in_global_search. The order in Global Search Settings is the order of the result cards.

SettingWhere
in_global_search on a fieldRecType YAML, or Customize Form
show_name_in_global_searchRecType YAML, or a Property Setter
Searched RecTypes and their orderGlobal Search Settings (System Manager)

Cancelled and disabled Records are left out.

How matching works

Search matches whole words, and the last word as a prefix. It does not stem, so invoices does not find invoice.

Keeping the index current

Each save updates the Record's search row in the same transaction, so a new Record is searchable as soon as it is saved. Changing which fields are searched rebuilds that RecType in the background. To rebuild by hand:

cardinal search reindex -t erp.localhost --rectype Customer

Leave out --rectype to rebuild every searched RecType.

On this page