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
Float field type should be captialized.
Kishore Nallana7ba29666ed4
diff --git a/include/field.h b/include/field.hindex f983e0df..583d278d 100644--- a/include/field.h+++ b/include/field.h@@ -9,7 +9,7 @@ namespace field_types {static const std::string STRING = "string";static const std::string INT32 = "int32";static const std::string INT64 = "int64";- static const std::string FLOAT = "FLOAT";+ static const std::string FLOAT = "float";static const std::string FLOAT_ARRAY = "float[]";static const std::string STRING_ARRAY = "string[]";static const std::string INT32_ARRAY = "int32[]";diff --git a/src/collection.cpp b/src/collection.cppindex 99872114..6d688255 100644--- a/src/collection.cpp+++ b/src/collection.cpp@@ -772,7 +772,7 @@ Option<nlohmann::json> Collection::search(std::string query, const std::vector<sfor(const sort_by & _sort_field: sort_fields) {if(sort_index.count(_sort_field.name) == 0) {- std::string error = "Could not find a field named `" + _sort_field.name + "` in the schema.";+ std::string error = "Could not find a field named `" + _sort_field.name + "` in the schema for sorting.";return Option<nlohmann::json>(400, error);}