Search...
totalPages
Returns the total number of pages the search produced.
Description
Type:
numberRead Only
Was this helpful?
Get the total number of pages in a search result
Copy Code
1let resultPages = results.totalPages; // 2
Perform a search and get the total number of pages in the search result
Copy Code
1import wixSearch from 'wix-search';23// ...45wixSearch.search(phrase)6 .find()7 .then( (results) => {8 let resultPages = results.totalPages; // 29 } ) ;