Resolving Java Spring Boot Popup Issue and Conversion of JSON Array to JSON lines
TLDR Vasudev experienced issues with a jar file for java in a Spring Boot project and querying about processing of JSON arrays. Kishore Nallan clarified the need for JSON lines and offered advice for conversion using a string array.
Jul 27, 2022 (17 months ago)
Vasudev
09:59 AMKishore Nallan
12:15 PMVasudev
01:28 PMVasudev
01:55 PMString documentList = "{\"countryName\": \"India\", \"capital\": \"Washington\", \"gdp\": 5215}\n" +
"{\"countryName\": \"Iran\", \"capital\": \"London\", \"gdp\": 5215}";
// Import your document as JSONL string from a file.
client.collections("countries").documents().import_(documentList, queryParameters)
Jul 28, 2022 (17 months ago)
Kishore Nallan
07:09 AMVasudev
09:43 AMKishore Nallan
10:16 AMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Issues with Importing Typesense Collection to Different Server
Kevin had problems migrating a Typesense collection between Docusaurus sites on different machines. Jason advised them on JSONL format, handling server hosting, and creating a collection schema before importing documents, leading to successful import.
Handling Large JSON File for Typesense
Matt struggled with processing a large JSON file for Typesense. Kishore Nallan explained how to create a schema, convert to JSONL, and import the file. They also identified the necessary keys from the JSON.
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.