Progressive search
Getting accurate search results when a site has several additional tables enabled for search can become difficult. A complex permissions structure for individual tables and records adds to this difficulty. Searching for content on such sites may end up with a records count that doesn't match the number shown on the search results page.
Overview
By default, the Power Pages search processes only one page for permissions and keyword matches. When results span across multiple pages, some results may be discarded because of permissions, or keywords, and the pagination becomes distorted.
Progressive search eliminates the possibility of having a mismatch between the results count and the number of records returned in the search results.
A site configured with progressive search processes five pages for a permissions and keyword match, 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 results.
Configure progressive search
To configure progressive search:
- Open the Portal Management app.
- On the left pane, select Site Settings under Website.
- Select New.
- Enter Name as "Search/EnableProgressiveSearchCounts".
- Select your website record.
- Enter Value as "true".
- Select Save.
- Rebuild the search index.
To disable progressive search, set the value of Search/EnableProgressiveSearchCounts site setting to false.
Progressive search with sample data
As an example, consider a site in an environment with Northwind Traders sample data, with search enabled for Order Products.
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.
This behavior is more prevalent when search results span across multiple pages. But with progressive search, you can get more accurate results by changing the behavior of the search for enabled facets and filters.
After a user enables progressive search on this site, the search results for the same user, permissions, and keyword show the total number of results as 10 instead.
If a user enables progressive search for a keyword that returns more than 50 results, the count shows as 50+ instead, with 10 results listed on the first page.
Selecting another page, such as page 2, shows the count updated to the total number of search results. (In this example, a total of 52.)
Considerations
- Enabling progressive search changes the behavior of the search for all enabled facets and filters.
- Progressive search processes a maximum of 50 records at a time, with more than 50 results shown as 50+ on the first result page.
- For a better search experience, use specific keywords that narrow the search results to a smaller number.
- Selecting a particular facet in filters only shows results for the selected facet, such as tables.
- 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.
See also
Faceted Search
Configuring additional tables for global search