#community-help

Clarifying '/multi_search' Response Codes in Typesense

TLDR Pankaj asked if /multi_search always returns 200 in case of errors. Jason confirmed it does, advising to always parse the response body for potential errors.

Powered by Struct AI
Oct 19, 2023 (1 month ago)
Pankaj
Photo of md5-6eb5a1ce5c2a902eaa7ed5dae82ed54b
Pankaj
01:25 PM
Hi Quick question, tried to find in documentation but dint find any. Does /multi_search always returns 200 ? even though there is error from typesense (Ex field doesn't exists in the collection). TIA
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:26 PM
That’s correct. This is to account for partial errors / successes in some documents.

So you want to always parse the response body to look for errors
Oct 20, 2023 (1 month ago)
Pankaj
Photo of md5-6eb5a1ce5c2a902eaa7ed5dae82ed54b
Pankaj
06:47 AM
Yeah make sense. Thanks for the quick reply.