Leon Wolf
08/26/2024, 9:37 AM'SyntaxError: Unexpected non-whitespace character after JSON at position 16\n at JSON.parse (<anonymous>)\n at <anonymous> (..../node_modules/typesense/src/Typesense/Documents.ts:355:26)\n at Array.map (<anonymous>)\n at Documents.<anonymous>
It seems like there might be an internal bug where the JSONL parsing fails to properly handle the error message?
i'm using collection().import(data, {action=create})
with an array of objects.Leon Wolf
08/26/2024, 9:40 AMJason Bosco
08/26/2024, 5:10 PMJason Bosco
08/26/2024, 5:11 PMJR
08/27/2024, 8:48 AM'q' => '*',
'include_fields' => 'product_id',
'query_by' => 'paragraph,tags,description,title,authors,isbn,isbn_print',
'group_by' => 'product_id',
'group_limit' => 1,
'per_page' => 24,
'page' => 1,
the response returns found: 24
. As soon as I change the q
param to something other than *
the found
value changes to the actual found groups, e.g. found: 101
. This seems to be a bug. I would expect to get the total number of found groups even when the q
param is *
, it should not be identically to the per_page
param. Can someone confirm? I'm not able to create a pagination otherwise, as found: 24
and per_page: 24
will always result in just one page for pagination.Jason Bosco
08/28/2024, 4:47 PM