mirror of
https://github.com/typesense/typesense.git
synced 2025-05-26 00:36:22 +08:00
Change error code.
This commit is contained in:
parent
0726c17804
commit
08af7beb3f
@ -1819,7 +1819,7 @@ Option<nlohmann::json> Collection::search(std::string raw_query,
|
||||
|
||||
for(const auto& expanded_search_field: expanded_search_fields) {
|
||||
if (search_schema.count(expanded_search_field) == 0) {
|
||||
return Option<nlohmann::json>(400, "Could not find `" + expanded_search_field + "` field in the schema.");
|
||||
return Option<nlohmann::json>(404, "Could not find `" + expanded_search_field + "` field in the schema.");
|
||||
}
|
||||
auto search_field = search_schema.at(expanded_search_field);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user