Skip to content

Commit b8c6790

Browse files
committed
Fixed the syntax of QueryRaw as it didn't work
//When I try this var response = client.Search(func); //This worked if the definition of func was Func<SearchDescriptor<dynamic>, SearchDescriptor<dynamic>> func = s => s .AllTypes() .From(0) .Size(5) .QueryRaw(@"{""match_all"": {} }") ; //This didn't work if the definition of func was Func<SearchDescriptor<dynamic>, SearchDescriptor<dynamic>> func = s => s .AllTypes() .From(0) .Size(10) .QueryRaw("\"match_all\" : { }") );
1 parent 9bd70c8 commit b8c6790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/contents/nest/writing-queries.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Or if using the object initializer syntax:
2828
## Raw Strings
2929
Although not preferred, many folks like to build their own JSON strings and just pass that along:
3030

31-
.QueryRaw("\"match_all\" : { }")
32-
.FilterRaw("\"match_all\" : { }")
31+
.QueryRaw(@"{""match_all"": {} }")
32+
.FilterRaw(@"{""match_all"": {} }")
3333

3434
NEST does not modify this in anyway and just writes this straight into the JSON output.
3535

0 commit comments

Comments
 (0)