Skip to content

Commit c0b309c

Browse files
avsejjrawsthorne
andauthored
CXXCBC-145: Search query request raw option not used (#380)
Co-authored-by: Jake Rawsthorne <jake.rawsthorne@couchbase.com>
1 parent 8dd03b0 commit c0b309c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/operations/document_search.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ search_request::encode_to(search_request::encoded_request_type& encoded, http_co
9797
body["collections"] = collections;
9898
}
9999

100+
for (const auto& [key, value] : raw) {
101+
body[key] = utils::json::parse(value);
102+
}
103+
100104
encoded.type = type;
101105
encoded.headers["content-type"] = "application/json";
102106
encoded.method = "POST";

0 commit comments

Comments
 (0)