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
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Remove `foo_sequence_id` from collection summary.
Harpreet Sangara9062c6fd61e
diff --git a/src/collection.cpp b/src/collection.cppindex 1559c181..07bde673 100644--- a/src/collection.cpp+++ b/src/collection.cpp@@ -159,8 +159,14 @@ nlohmann::json Collection::get_summary_json() const {}nlohmann::json fields_arr;+ const std::regex sequence_id_pattern(".*_sequence_id$");for(const field & coll_field: fields) {+ if (std::regex_match(coll_field.name, sequence_id_pattern)) {+ // Don't add foo_sequence_id field.+ continue;+ }+nlohmann::json field_json;field_json[fields::name] = coll_field.name;field_json[fields::type] = coll_field.type;