TS Response Indicates Incorrect Document Count
TLDR Manish encounters a discrepancy in document count when running search query on TS. Jason asks about scoped API key and num_documents
; Manish needs to check.
Jun 02, 2023 (4 months ago)
Manish
01:43 AMjq '.hits[].document.id' | wc -l
. Why does TS say "out_of" 19, when only 10 docs exist? "out_of": 19,
"page": 1,
"request_params": {
"collection_name": "threads",
"per_page": 64,
"q": ""
},
"search_cutoff": false,
"search_time_ms": 3
Jason
02:26 AMGET /collections
what does num_documents
say?Jason
02:26 AMManish
03:50 AMTypesense
Indexed 2776 threads (79% resolved)
Similar Threads
Optimizing Uploads to Typesense and Dealing with Hits Limit
Masahiro asked how to upload documents to Typesense faster and about their search feature limit_hits. Jason suggested batching documents and debugged the search query. Issue was resolved.
Threading Problem During Multiple Collection Creation and Batch Insertion in Typesense
Johan has a problem with creating multiple collections and batch-inserting documents into Typesense, which is returning results from different collections. Kishore Nallan helps troubleshoot the issue and suggests a potential local race condition, which is fixed in a later build.
Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.