Close popover

Table of Contents

Native search capability in mobile apps

Version:

Mobile apps that you develop in Pega Platform do not provide search by default. Since search is critical and provides the user with a quick and a customized way to look for content within the app, you must add the native search capability to the app separately. This improves the overall user experience of the mobile app by providing the needed speed and responsiveness.

Using the mobile search capability in an application requires UI Kit 12 or higher.

The configuration settings for the mobile search capability are saved in the pySearchConfiguration rule. You can specify the minimum number of characters that a user has to enter to obtain search results from the server.

You can also specify categories as a local data source for the search operation. For each category, you can define the icon, display name, and title and description to display on a mobile app during searching. For each category, you can specify the action to trigger when a user clicks a search category item. If you did not define any category icons, you can specify a default icon to use for all the search categories.

To disable mobile search when the mobile app is in offline mode, set the pyIsLocalStorageForMobileSearchEnabled when rule to false. This means that mobile search in only available when you are in online mode.

  • Configuring full-text search

    Depending on how your system is configured, developers can search for rules, data instances, and work items, and application users can search for work items. By default, full-text search is enabled for rules.

  • Configuring search in mobile apps

    Enhance the overall user experience by configuring the search in a mobile app. For example, modify the search parameters and define the scope of the search in your app.

  • 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.

  • Configuring a search action in a mobile app

    To use the native search capability in a mobile app, you must define a mobile search action in the user interface. You can define the mobile search action anywhere within a section. For example, you can define this action for a button. When a user clicks that button, a native search is enabled so that the user can more quickly find the relevant content.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.