Search...
length
Returns the number of documents in the current results page.
Description
Type:
numberRead Only
Was this helpful?
Get the length of the current results page
Copy Code
1let resultLength = results.length; // 20
Perform a search and get the length of the current results page
Copy Code
1import wixSearch from 'wix-search';23// ...45wixSearch.search(phrase)6 .find()7 .then( (results) => {8 let resultLength = results.length; // 209 } ) ;