I am trying example search application in Guide. I imported the file using the import endpoint and got 200 back and I searched with the query given in the same page and I am not getting the result. Do I have to wait for the Import to index data. Is there a way to get the count of documents in the index
k
Kishore Nallan
04/05/2022, 9:30 AM
All endpoints are synchronous so it would get indexed and be available as soon as the call ends.
Hit the /collections endpoint to see the count of documents and other collection metadata.
s
satish venkatakrishnan
04/05/2022, 9:33 AM
Thanks @Kishore Nallan. I am getting 0 as the number of documents. How can we debug the Import failures.
k
Kishore Nallan
04/05/2022, 9:34 AM
Check the import response. The body will contain the error. Each line in import response corresponds to respective line in import body.