// tag::low-level[]

This is how you can update a document, for example to add a new field, by using 
the low-level API:

[source,go]
----
client.Update("my_index", "id", strings.NewReader(`{doc: { language: "Go" }}`))
----

// end::low-level[]


// tag::fully-typed[]

This is how you can update a document with the fully-typed API:

[source,go]
----
typedClient.Update("my_index", "id").
	Request(&update.Request{
        Doc: json.RawMessage(`{ language: "Go" }`),
    }).Do(context.TODO())
----

// end::fully-typed[]