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
Review Changes
ozanarmaganaee771cebcb2
diff --git a/include/field.h b/include/field.hindex 305675ab..18a1d4b7 100644--- a/include/field.h+++ b/include/field.h@@ -11,7 +11,6 @@#include <tsl/htrie_map.h>#include "json.hpp"#include "text_embedder_manager.h"-#include <regex>namespace field_types {// first field value indexed will determine the type@@ -411,7 +410,7 @@ struct field {static Option<bool> json_field_to_field(bool enable_nested_fields, nlohmann::json& field_json,std::vector<field>& the_fields,- string& fallback_field_type, size_t& num_auto_detect_fields,const nlohmann::json& all_fields_json = nlohmann::json());+ string& fallback_field_type, size_t& num_auto_detect_fields);static Option<bool> json_fields_to_fields(bool enable_nested_fields,nlohmann::json& fields_json,@@ -475,7 +474,7 @@ struct field {}auto op = json_field_to_field(enable_nested_fields,- field_json, the_fields, fallback_field_type, num_auto_detect_fields, fields_json);+ field_json, the_fields, fallback_field_type, num_auto_detect_fields);if(!op.ok()) {return op;}diff --git a/src/field.cpp b/src/field.cppindex be2000b0..129c7512 100644--- a/src/field.cpp+++ b/src/field.cpp@@ -523,7 +523,7 @@ Option<bool> filter::parse_filter_query(const std::string& filter_query,Option<bool> field::json_field_to_field(bool enable_nested_fields, nlohmann::json& field_json,std::vector<field>& the_fields,- string& fallback_field_type, size_t& num_auto_detect_fields, const nlohmann::json& all_fields_json) {+ string& fallback_field_type, size_t& num_auto_detect_fields) {if(field_json["name"] == "id") {// No field should exist with the name "id" as it is reserved for internal use