mirror of
https://github.com/typesense/typesense.git
synced 2025-05-19 21:22:25 +08:00
Remove double quotes to prevent bad escaping in JSON response.
Fix for #1753
This commit is contained in:
parent
ed87e63961
commit
1c0c5c4d51
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user