|
| 1 | +--- |
| 2 | +title: Progressive search |
| 3 | +description: Learn how to configure progressive search in portals for accurate record counts. |
| 4 | +author: sandhangitmsft |
| 5 | +ms.service: powerapps |
| 6 | +ms.topic: conceptual |
| 7 | +ms.custom: |
| 8 | +ms.date: 04/15/2021 |
| 9 | +ms.author: sandhan |
| 10 | +ms.reviewer: tapanm |
| 11 | +contributors: |
| 12 | + - sandhangitmsft |
| 13 | + - tapanm-msft |
| 14 | +--- |
| 15 | + |
| 16 | +# Progressive search |
| 17 | + |
| 18 | +Finding accurate search results when a portal has several [additional tables](search-additional-entities.md) enabled for search can become difficult. A complex permissions structure for individual tables and records adds to this difficulty. Searching for content on such portals may end up with a high number of results while the results count may not match the records count on the results page. |
| 19 | + |
| 20 | +## Overview |
| 21 | + |
| 22 | +By default, portals search processes only one page for permissions and keywords match. When results span across more than one page causing some results being discarded because of permissions or keywords, the pagination gets distorted. |
| 23 | + |
| 24 | +Progressive search eliminates the possibility of having a mismatch between the results count, and the number of records returned in search results. |
| 25 | + |
| 26 | +A portal configured with progressive search processes five pages for permissions and keywords check, with 50 records for a single search attempt. The search count now shows **50+** on the first page instead of the mismatch count between facet and the results. |
| 27 | + |
| 28 | +## Configure progressive search |
| 29 | + |
| 30 | +To configure progressive search for your portal: |
| 31 | + |
| 32 | +1. Open the [Portal Management app](configure-portal.md) app. |
| 33 | +1. On the left-pane, select **Site Settings** under **Website**. |
| 34 | +1. Select **New**. |
| 35 | +1. Enter **Name** as "Search/EnableProgressiveSearchCounts". |
| 36 | +1. Select your website record. |
| 37 | +1. Enter **Value** as "true". |
| 38 | +1. Select Save. |
| 39 | + |
| 40 | +  |
| 41 | + |
| 42 | +1. [Rebuild your search index](search-additional-entities.md#step-6-rebuild-the-search-index). |
| 43 | + |
| 44 | +To disable progressive search, set the value of **Search/EnableProgressiveSearchCounts** site setting to **false**. |
| 45 | + |
| 46 | +## Progressive search with sample data |
| 47 | + |
| 48 | +For example, consider a portal in an environment with [Northwind Traders sample data](../../canvas-apps/northwind-install.md), having search enabled for [Order Products](search-additional-entities.md). |
| 49 | + |
| 50 | +In this sample portal, consider a total of 68 products in the *Order Products* table. However, a user has permissions to access only 10 products. |
| 51 | + |
| 52 | +When the user searches for products, only 10 results show up, even though the search facet shows the total number of products as 68, including the configured filters. |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +This behavior is more prevalent when search results span across multiple pages. |
| 57 | + |
| 58 | +After you enable progressive search on this portal, the search results for the same user, permissions, and keyword shows total number of results as 10 instead. |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +Furthermore, if a user searches for keyword that results in more than 50 results after the permissions check and keyword filter, the count shows as **50+** instead. |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +Selecting next pages, such as page 2, shows the count updated to the total number of search results. |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +With progressive search, you can get more accurate search results. |
| 71 | + |
| 72 | +## Considerations |
| 73 | + |
| 74 | +- Enabling progressive search changes the behavior of the search for all enabled facets and filters. |
| 75 | +- Progressive search processes a maximum of 50 records at a time, with more than 50 results shown as **50+** on the first result page. |
| 76 | +- For better search experience, use specific keywords that narrow the search results to a smaller number. |
| 77 | +- Selecting a particular facet in filters only shows results for the selected facet, such as tables. |
| 78 | +- Since the records are progressively evaluated, the jump to last page button () is only available if the remaining number of pages in the search result are five or less. |
| 79 | + |
| 80 | +  |
| 81 | + |
| 82 | +### See also |
| 83 | + |
| 84 | +[Use faceted search](improve-portal-search-faceted-search.md) <br> |
| 85 | +[Configure search for additional tables](search-additional-entities.md) |
| 86 | + |
| 87 | +[!INCLUDE[footer-include](../../../includes/footer-banner.md)] |
0 commit comments