Hi Everyone! We're using the JS client with `docum...
# community-help
a
Hi Everyone! We're using the JS client with
documents().import()
and
action: "upsert"
to import ~500K docs. The API returns 200 within a minute — just wanted to reconfirm: does this mean all docs are fully indexed and immediately searchable, or is indexing happening asynchronously after the 200? Thanks! CC : @Sahil Rally @Ashutosh
k
That api will always return 200. The individual response lines will contain per document status. This is documented in the docs.
a
okay, but we had to clarify if the documents are actually searchable just after the API returned 200 as importing 500K documents only took ~1 min, this lead us to suspect that whether indexing is complete or it just acknowledges the document imports and indexes them asynchronously.
k
When api call returns indexing has succeeded
a
okay, thanks for confirming @Kishore Nallan