Text search views format search results

Configure how the system displays global text search results with a text search view.

Each search result listing consists of these elements.

Figure 1. Sample search result listing
Table 1. Search result elements
Element Description Matching criteria
1. Title The title is the first line of the search result block. The title links to the matching record of the search result. Global search uses the first string field in the text search view that is not the number field. If there is no matching string field or the contents of the field is empty, the system displays the text "No title" in the session language. For example, in the default incident table view the short description field meets the criteria to be the title.
2. Field list The field list is the second line of the search results. The field lists contains a name-value pair for each field in the text search view separated by a pipe character. The system displays the field list in gray text. All fields in the text search view that do not match the title or description criteria.
3. Description The description is an optional third line of the search results. The system displays the description in black text. Global search uses the first string field in the text search view that is not the title and is over 100 characters in length. If no field matches this criteria, the search results omit this line. For example, there is no matching description field in the text search view of the Incident table.

By default, the system uses the text_search view to format global text search results. If a table does not have this view, the system instead formats search results using the default view. Implementers can specify which view the system uses to format search results with the system property glide.ui.text_search.view.