mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 12:42:50 +08:00
Float field type should be captialized.
This commit is contained in:
parent
a6dced3c43
commit
a7ba29666e
@ -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[]";
|
||||
|
@ -772,7 +772,7 @@ Option<nlohmann::json> Collection::search(std::string query, const std::vector<s
|
||||
|
||||
for(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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user