Configuring categories for mobile search
Provide mobile app users with more comprehensive search results by limiting the scope of the search to the categories that you define. For example, you can add a search category that displays the name and email of a person that matches the search parameters.
When you configure search categories for mobile search, you reference data pages as sources for the categories. The mobile client pulls these references as large data pages and stores them in separate SQL tables to facilitate search.
Add the pyModificationDateTime and
pyIsRecordDeleted properties to the data source of the data page that
you want to use as the source for a search category so that the mobile client recognizes it as
a large data page. For more information about using large data pages
effectively, see Creating and sourcing large data pages to store large
reference data in offline-enabled applications.
- In Dev Studio, search for and open the pySearchConfiguration rule.
- On the Editor tab, in the Search categories section, click Add category.
- Optional:
To add a specific icon for the category, perform the following steps:
- In the new category row, click Select icon, and then click the Show image viewer icon.
- In the Image catalog window, enter an image name, and then click Find.
- Select an image that you want to use for the search category, click OK, and then click Submit.
- Optional:
To set a new default icon for search categories, perform the following steps:
- In the Advanced section, click the Show image viewer icon.
- In the Image catalog window, enter an image name, and then click Find.
- Select the image that you want to use as default for new search categories, and then click OK.
-
In the new category row, define the parameters of the search category:
- Optional:
To define an action that occurs when users click a search category item, perform the
following steps:
- Optional: To add more categories to the list, repeat steps 2 through 6.
- Click Save.