mirror of
https://github.com/typesense/typesense.git
synced 2025-05-24 15:50:42 +08:00
update stopword get response
This commit is contained in:
parent
bee8096bf9
commit
78352c0e23
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user