Enabling global search for use in an application
Before you begin
- Make sure to enable full text search in fields. For more information, see To enable full text search in fields.
- Your application must consist of the following elements:
- Record definition that consists of at least one text field that has the FTS property enabled (search field). You can create multiple record definitions to include in the search.
- View definition that consists of the record editor component for each record definition that includes search fields. The view needs to have an input parameter that is bound to the ID of the record from the search results, and the Record ID of the record editor should point to that view parameter.
To configure global search
- Log in to the BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select the application, and click Navigation.
- On the canvas, select the navigation bar, on the Properties tab, select the Enable global search check box.
- Click Configure results view.
- On Configure results view, add the records to include in the search result, select the view from the Display View When Clicked list.
- Click Save.
The following image shows a sample search result with the default configuration:
The annotations in the image are described in the following table:
Annotation | Description |
---|---|
1 | Search string used to perform the search. |
2 | Search results are stored in the order of relevancy. You can use the filter to specify the record definitions that should be included in the search results. |
3 | Search results have the following format:
|
4 | Search results are sorted in descending order by relevancy. |
5 | By default, the first 50 search results are displayed. The search page uses an infinite scroll pattern. When you scroll down, the page loads a chunk of 50 additional search results at the bottom of the page. |
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*