Skip to content

Commit 9c4f1a1

Browse files
authored
Update docs/getting-started.asciidoc
1 parent 823402c commit 9c4f1a1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/getting-started.asciidoc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,19 @@ This is how you can create a single match query with the .NET client:
106106

107107
[source,net]
108108
----
109-
109+
var response = await client.SearchAsync<MyDoc>(s => s
110+
.Index("my_index")
111+
.From(0)
112+
.Size(10)
113+
.Query(q => q
114+
.Term(t => t.User, "flobernd")
115+
)
116+
);
117+
118+
if (response.IsValidResponse)
119+
{
120+
var doc = response.Documents.FirstOrDefault();
121+
}
110122
----
111123

112124

0 commit comments

Comments
 (0)