Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Update doc API should return 200 status code, and not 201.

Kishore Nallan5d64d7d090f6
diff --git a/src/core_api.cpp b/src/core_api.cpp
index 8242d7e1..bfdcce1e 100644
--- a/src/core_api.cpp
+++ b/src/core_api.cpp
@@ -1283,7 +1283,7 @@ bool patch_update_document(const std::shared_ptr<http_req>& req, const std::shar
return false;
}
- res->set_201(upserted_doc_op.get().dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore));
+ res->set_200(upserted_doc_op.get().dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore));
return true;
}