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
Store `foo_sequence_id` in collection's meta-data.
Harpreet Sangarbeb5e700cb68
diff --git a/include/field.h b/include/field.hindex 44de4637..63feff0f 100644--- a/include/field.h+++ b/include/field.h@@ -285,17 +285,11 @@ struct field {const std::string & default_sorting_field,nlohmann::json& fields_json) {bool found_default_sorting_field = false;- const std::regex sequence_id_pattern(".*_sequence_id$");// Check for duplicates in field namesstd::map<std::string, std::vector<const field*>> unique_fields;for(const field & field: fields) {- if (std::regex_match(field.name, sequence_id_pattern)) {- // Don't add foo_sequence_id field.- continue;- }-unique_fields[field.name].push_back(&field);if(field.name == "id") {diff --git a/src/collection_manager.cpp b/src/collection_manager.cppindex 96a187b9..0475dfbe 100644--- a/src/collection_manager.cpp+++ b/src/collection_manager.cpp@@ -89,10 +89,6 @@ Collection* CollectionManager::init_collection(const nlohmann::json & collection}fields.push_back(f);-- if (!f.reference.empty()) {- fields.emplace_back(field(f.name + "_sequence_id", "string", false, f.optional, true));- }}std::string default_sorting_field = collection_meta[Collection::COLLECTION_DEFAULT_SORTING_FIELD_KEY].get<std::string>();