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

Ignore invalid UTF-8 when dumping search response.

Kishore Nallan21121178e97b
diff --git a/src/core_api.cpp b/src/core_api.cpp
index bdb36297..929fc530 100644
--- a/src/core_api.cpp
+++ b/src/core_api.cpp
@@ -547,7 +547,7 @@ bool get_collection_summary(http_req & req, http_res & res) {
}
nlohmann::json json_response = collection->get_summary_json();
- res.set_200(json_response.dump());
+ res.set_200(json_response.dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore));
return true;
}