Configure advanced search

A guide to setting up advanced search

Step 1: Enable advanced search in data model

Properties that should be searchable, must be enabled for advanced search in the data model. Note that there can be a delay of 5-15 minutes before the search indices are up and running. String and Rich Text are the property data types that can be enabled for advanced search.

Step 2: App data for search results and search term

Create a runtime-only data source for storing the search results. The data source can have either cardinality one or many, but returning multiple search results is often useful. Additionally, create a String variable to capture the search term, which can be implemented as an App Variable.

Step 3: UI for searching and displaying results

In the UI, data-bind the App Variable set up in the previous step to a text edit component. An adornment icon button can be added to make a search field. Use the On Enter and/or On Adornment Click Event Handlers to add the action to perform the search (more about that in step 4). Add a list, table or iterating container and databind it to the runtime-only data source containing the search results. Visibility conditions can be added to indicate no results were found.

Add an Advanced search action node to the action added in step 3 and set the data source to the one set up in step 2. Select the Search Type, which properties to search in (the ones enabled in step 1) and set the Search Term to be the App Variable set up in step 2.

Last updated