diff --git a/.doc/getting-started.asciidoc b/.doc/getting-started.asciidoc index b11a1e708b..79430649b2 100644 --- a/.doc/getting-started.asciidoc +++ b/.doc/getting-started.asciidoc @@ -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)), @@ -225,4 +225,4 @@ typedClient.Indices.Delete("my_index").Do(context.TODO()) == Further reading * Learn more about the <>, a strongly typed Golang API -for {es}. \ No newline at end of file +for {es}.