Search.../

pageSize

Returns the search page size.

Description

The page size is defined by the limit() function, can be retrieved using the pageSize property. You navigate through pages using the prev() and next() functions.

Type:

numberRead Only

Was this helpful?

Get the page size of a search result

Copy Code
1let resultPageSize = results.pageSize; // 25
Perform a search and get the page size of the search result

Copy Code
1import wixSearch from 'wix-search';
2
3// ...
4
5wixSearch.search(phrase)
6 .find()
7 .then( (results) => {
8 let resultPageSize = results.pageSize; // 25
9 } ) ;