Trouble with Document Error in Indexing
TLDR Hauke is encountering an error during indexing with a specific field and working to provide Kishore Nallan with a reproducible example. Kishore Nallan gave troubleshooting advice, but issue not yet resolved.
1
Aug 31, 2023 (1 month ago)
Hauke
08:14 AMI20230831 08:13:32.846366 25 index.cpp:504] Error while validating document: [json.exception.type_error.302] type must be number, but is array
I20230831 08:13:33.040822 23 index.cpp:504] Error while validating document: [json.exception.type_error.302] type must be number, but is array
I20230831 08:13:33.574386 111 index.cpp:504] Error while validating document: [json.exception.type_error.302] type must be number, but is array
I20230831 08:13:33.592056 79 index.cpp:504] Error while validating document: [json.exception.type_error.302] type must be number, but is array
I20230831 08:13:35.740233 81 index.cpp:504] Error while validating document: [json.exception.type_error.302] type must be number, but is array
I20230831 08:13:35.773180 53 index.cpp:504] Error while validating document: [json.exception.type_error.302] type must be number, but is array
I20230831 08:13:36.697739 76 index.cpp:504] Error while validating document: [json.exception.type_error.302] type must be number, but is array
Hauke
08:16 AMKishore Nallan
08:41 AMHauke
08:44 AM{
"message": "[json.exception.type_error.302] type must be number, but is array"
}
Hauke
08:44 AMKishore Nallan
08:44 AMKishore Nallan
08:45 AMKishore Nallan
08:45 AMHauke
08:45 AMint32[]
field that I was trying to feed an array of strings.Kishore Nallan
08:46 AMHauke
08:47 AMHauke
08:48 AM{"intArray": ["2","3"]}
Kishore Nallan
08:48 AM1
Hauke
08:49 AMKishore Nallan
09:48 AM{"message":"Field `points` must be an array of int32."}
It will be great if you can post a full example code snippet.
Hauke
11:30 AMSep 01, 2023 (1 month ago)
Kishore Nallan
11:50 AMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Issues with Indexing Data using Typesense in Go
Konrad was having trouble with a "Forbidden" error using Typesense in Go when indexing data remotely. David offered multiple troubleshooting steps and suggestions. Ultimately, Konrad discovered the issue lied within the application code.
Issue with Embedding Error in Version 0.25.0.rc63
Bill reported a bug in version 0.25.0.rc63 regarding a problem with updating or emplacing a document and receiving an embedding error. This was resolved in version 0.25.0.rc65, but further discussion ensued regarding the function of 'index' in the update feature.
Resolving Typesense 0.22.2 Syntax Error and Import Issues
John faced issues with Typesense 0.22.2 code syntax and import functionality. Jason advised to reformat the JSONL records into single lines, increase ulimit, and convert dates to int64 format manually in code. A typo in the code was also corrected.
Issues with Typesense Repo and Version Upgrade
Ankit reports a problem with the typesense repo which Jason and Kishore Nallan promptly address and fix. However, the same user encounters an issue when upgrading, making the server status "Not ready or lagging". The process is ongoing.
Issue with Query Expectations on Typesense Search
Sean was having an issue with their search query on Typesense. Kishore Nallan suggested adjusting the 'drop_tokens_threshold' parameter. After making the adjustment, Sean found an issue with the order of the results, which was resolved by updating Typesense version.