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 stopword get response

krunal78352c0e2396
diff --git a/src/core_api.cpp b/src/core_api.cpp
index 60f8e870..8c640b82 100644
--- a/src/core_api.cpp
+++ b/src/core_api.cpp
@@ -2202,9 +2202,9 @@ bool get_stopword(const std::shared_ptr<http_req>& req, const std::shared_ptr<ht
}
nlohmann::json res_json;
- res_json["name"] = stopword_name;
+ res_json["id"] = stopword_name;
for(const auto& stopword : stopwords) {
- res_json["value"].push_back(stopword);
+ res_json["stopwords"].push_back(stopword);
}
res->set_200(res_json.dump());