mirror of
https://github.com/typesense/typesense.git
synced 2025-05-25 00:01:18 +08:00
Fix failing tests.
This commit is contained in:
parent
2a82994365
commit
aa753fffc1
@ -83,7 +83,8 @@ Option<bool> field::json_field_to_field(bool enable_nested_fields, nlohmann::jso
|
||||
}
|
||||
|
||||
auto const& type = field_json["type"];
|
||||
if (type != field_types::INT32 && type != field_types::INT32_ARRAY &&
|
||||
if (field_json[fields::range_index] &&
|
||||
type != field_types::INT32 && type != field_types::INT32_ARRAY &&
|
||||
type != field_types::INT64 && type != field_types::INT64_ARRAY &&
|
||||
type != field_types::FLOAT && type != field_types::FLOAT_ARRAY) {
|
||||
return Option<bool>(400, std::string("The `range_index` property is only allowed for the numerical fields`"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user