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

Fix ID not being returned during upsert

Jason Bosco87683d3113ee
diff --git a/src/core_api.cpp b/src/core_api.cpp
index ab0d750e..ffbe8f38 100644
--- a/src/core_api.cpp
+++ b/src/core_api.cpp
@@ -933,6 +933,8 @@ bool put_override(http_req &req, http_res &res) {
return false;
}
+ req_json["id"] = override.id;
+
res.set_200(req_json.dump());
return true;
}