Skip to content

Commit

Permalink
Use double-quote to start field name (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
lnnt authored Oct 10, 2023
1 parent 0d88838 commit eabf274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .doc/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ This is how you can create a single match query with the low-level API:

[source,go]
----
query := `{ query: { match_all: {} } }`
query := `{ "query": { "match_all": {} } }`
client.Search(
client.Search.WithIndex("my_index"),
client.Search.WithBody(strings.NewReader(query)),
Expand Down Expand Up @@ -225,4 +225,4 @@ typedClient.Indices.Delete("my_index").Do(context.TODO())
== Further reading

* Learn more about the <<typedapi>>, a strongly typed Golang API
for {es}.
for {es}.

0 comments on commit eabf274

Please sign in to comment.