Remove double quotes to prevent bad escaping in JSON response.

Fix for #1753
This commit is contained in:
Jason Bosco 2024-05-24 14:38:10 -05:00
parent ed87e63961
commit 1c0c5c4d51
2 changed files with 2 additions and 2 deletions

View File

@ -2636,7 +2636,7 @@ Option<bool> Index::search_infix(const std::string& query, const std::string& fi
if(infix_maps_it == infix_index.end()) {
return Option<bool>(400, "Could not find `" + field_name + "` in the infix index. Make sure to enable infix "
"search by specifying `\"infix\": true` in the schema.");
"search by specifying `infix: true` in the schema.");
}
auto infix_sets = infix_maps_it->second;

View File

@ -57,7 +57,7 @@ TEST_F(CollectionInfixSearchTest, InfixBasics) {
4, {always});
ASSERT_FALSE(response.ok());
ASSERT_EQ("Could not find `non_infix` in the infix index."
" Make sure to enable infix search by specifying `\"infix\": true` in the schema.", response.error());
" Make sure to enable infix search by specifying `infix: true` in the schema.", response.error());
auto results = coll1->search("100037",
{"title"}, "", {}, {}, {0}, 3, 1, FREQUENCY, {true}, 5,