Skip to content

Commit 52d58e9

Browse files
authored
Merge pull request #4386 from MicrosoftDocs/2245371
Progressive search - 2245371
2 parents f8adda6 + efaf332 commit 52d58e9

12 files changed

+94
-1
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,6 +1620,8 @@
16201620
href: ./portals/configure/improve-portal-search-faceted-search.md
16211621
- name: Search within file attachments
16221622
href: ./portals/configure/search-file-attachment.md
1623+
- name: Configure progressive search counts
1624+
href: ./portals/configure/progressive-search.md
16231625
- name: Configure document storage in portals
16241626
items:
16251627
- name: Configure notes

powerapps-docs/maker/portals/configure/improve-portal-search-faceted-search.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ Faceted search enables portals to have search filters on the leftmost side allow
4242

4343
![Use filters to improve search results](../media/faceted-search-filter.png "Use filters to improve search results")
4444

45+
### See also
46+
47+
[Progressive search](progressive-search.md)
4548

4649
[!INCLUDE[footer-include](../../../includes/footer-banner.md)]
Loading
Loading
Loading
Loading
Loading
Loading
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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+
![Progressive search site setting of Search/EnableProgressiveSearchCounts set to true](media/progressive-search/site-setting.png "Progressive search site setting of Search/EnableProgressiveSearchCounts set to true")
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+
![Search result with mismatch of results count and actual results](media/progressive-search/incorrect-results-count.png "Search result with mismatch of results count and actual results")
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+
![Search result with matching results count and actual results](media/progressive-search/correct-results-count.png "Search result with matching results count and actual results")
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+
![Search result with 50+ results](media/progressive-search/results-count-50plus.png "Search result with 50+ results")
65+
66+
Selecting next pages, such as page 2, shows the count updated to the total number of search results.
67+
68+
![Search result with 50+ results and next page](media/progressive-search/results-count-50plus-subsequent-page.png "Search result with 50+ results and next page")
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 (![Jump to last page button](media/progressive-search/last-page-button.png "Jump to last page button")) is only available if the remaining number of pages in the search result are five or less.
79+
80+
![Jump to last page option available when number of pages are five or less](media/progressive-search/jump-last-page.png "Jump to last page option available when number of pages are five or less")
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

Comments
 (0)