I am trying example search application in Guide. I...
# community-help
s
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
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
Thanks @Kishore Nallan. I am getting 0 as the number of documents. How can we debug the Import failures.
k
Check the import response. The body will contain the error. Each line in import response corresponds to respective line in import body.
s
Thanks found the error . I got the sorting field name wrong .
👍 1