Issues with Document Import in Database Collection
TLDR Raj stated that a document import example for database collection does not seem to work, and Jason looped in Kishore Nallan for further assistance.
Jan 30, 2023 (10 months ago)
Raj
05:23 PMImportDocumentsParameters queryParameters = new ImportDocumentsParameters();
queryParameters.action("create");
String 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)
this example does not seems to be adding the collection
Jason
08:08 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Resolving Special Character Search Errors
suraj had issues searching for data containing special characters. Kishore Nallan resolved the issue by advising suraj to remove the parameters for 'preSegmentedQuery' and 'tokenSeparators'.
Troubleshooting Document Import Error
GM faced error issues while importing documents, possibly due to geolocation values. Patrik offered possible causes and Kishore Nallan identified the main issue and resolution.
Document Overlapping Issue in Collections
Patrick faced issue with documents from one collection appearing in another when using the javascript library. Kishore Nallan suggested instantiating separate client objects and fixed an identified potential race condition in a newer build. Patrick confirmed the fix worked, resolving the issue.