From 08af7beb3f5259055c7c68a4260f20c180e6f129 Mon Sep 17 00:00:00 2001 From: Harpreet Sangar Date: Fri, 5 Jan 2024 12:25:18 +0530 Subject: [PATCH] Change error code. --- src/collection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection.cpp b/src/collection.cpp index b43f5218..432b4f76 100644 --- a/src/collection.cpp +++ b/src/collection.cpp @@ -1819,7 +1819,7 @@ Option 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(400, "Could not find `" + expanded_search_field + "` field in the schema."); + return Option(404, "Could not find `" + expanded_search_field + "` field in the schema."); } auto search_field = search_schema.at(expanded_search_field);