Retrieving Number of Pages and Total Hits from API Documentation
TLDR AK asked about retrieving page count and total hits from API documentation. Kishore Nallan guided them to the "found" field in the response.
Powered by Struct AI
1
4
13mo
Solved
Sep 23, 2022 (13 months ago)
AK
AK
10:51 AMHi everyone, does anyone know where is the documentation for retrieving the number of pages? = ( nbPages ) ?
Kishore Nallan
Kishore Nallan
10:54 AMTotal pages not returned, only total hits
AK
AK
10:57 AMwhere can I find the API doc for retrieving the total hits?
Kishore Nallan
Kishore Nallan
10:58 AM"found" field in response
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2786 threads (79% resolved)
Similar Threads
Getting Total Found Results in Search API Response
KARTHICK asked how to get the total found results. Jason suggested looking at the found field in the search API response.
2
5mo
Solved
Query about Search API's Result Details
Shawn asked if the search API returns total pages. Jason clarified that it does not, yet it provides data necessary for the calculation.
4
9mo
Solved
Identifying Last Page of Search Results via API
TJ asked if there was a way to know when he's reached the last page of a search result. Jason suggested using the 'found' and 'page' parameters in the API response.
4
2mo
Solved