@@ -27,8 +27,9 @@ Refer to the [*Installation*](/reference/installation.md) page to learn more.
2727### Connecting [ _ connecting]   
2828
2929:::::::{tab-set}
30- 
30+ :group: apis 
3131::::::{tab-item} Low-level API
32+ :sync: lowLevel
3233You can connect to the Elastic Cloud using an API key and the Elasticsearch endpoint for the low level API:
3334
3435``` go 
@@ -40,6 +41,7 @@ client, err := elasticsearch.NewClient(elasticsearch.Config{
4041::::::
4142
4243::::::{tab-item} Fully-typed API
44+ :sync: typed
4345You can connect to the Elastic Cloud using an API key and the Elasticsearch endpoint for the fully-typed API:
4446
4547``` go 
@@ -70,8 +72,9 @@ Time to use Elasticsearch! This section walks you through the basic, and most im
7072#### Creating an index [ _ creating_an_index]   
7173
7274:::::::{tab-set}
73- 
75+ :group: apis 
7476::::::{tab-item} Low-level API
77+ :sync: lowLevel
7578This is how you create the ` my_index `  index with the low level API:
7679
7780``` go 
@@ -80,6 +83,7 @@ client.Indices.Create("my_index")
8083::::::
8184
8285::::::{tab-item} Fully-typed API
86+ :sync: typed
8387This is how you create the ` my_index `  index with the fully-typed API:
8488
8589``` go 
@@ -92,8 +96,9 @@ typedClient.Indices.Create("my_index").Do(context.TODO())
9296#### Indexing documents [ _ indexing_documents]   
9397
9498:::::::{tab-set}
95- 
99+ :group: apis 
96100::::::{tab-item} Low-level API
101+ :sync: lowLevel
97102This is a simple way of indexing a document by using the low-level API:
98103
99104``` go 
@@ -108,6 +113,7 @@ client.Index("my_index", bytes.NewReader(data))
108113::::::
109114
110115::::::{tab-item} Fully-typed API
116+ :sync: typed
111117This is a simple way of indexing a document by using the fully-typed API:
112118
113119``` go 
@@ -128,8 +134,9 @@ typedClient.Index("my_index").
128134#### Getting documents [ _ getting_documents]   
129135
130136:::::::{tab-set}
131- 
137+ :group: apis 
132138::::::{tab-item} Low-level API
139+ :sync: lowLevel
133140You can get documents by using the following code with the low-level API:
134141
135142``` go 
@@ -138,6 +145,7 @@ client.Get("my_index", "id")
138145::::::
139146
140147::::::{tab-item} Fully-typed API
148+ :sync: typed
141149This is how you can get documents by using the fully-typed API:
142150
143151``` go 
@@ -150,8 +158,9 @@ typedClient.Get("my_index", "id").Do(context.TODO())
150158#### Searching documents [ _ searching_documents]   
151159
152160:::::::{tab-set}
153- 
161+ :group: apis 
154162::::::{tab-item} Low-level API
163+ :sync: lowLevel
155164This is how you can create a single match query with the low-level API:
156165
157166``` go 
@@ -164,6 +173,7 @@ client.Search(
164173::::::
165174
166175::::::{tab-item} Fully-typed API
176+ :sync: typed
167177This is how you can perform a single match query with the fully-typed API:
168178
169179``` go 
@@ -181,8 +191,9 @@ typedClient.Search().
181191#### Updating documents [ _ updating_documents]   
182192
183193:::::::{tab-set}
184- 
194+ :group: apis 
185195::::::{tab-item} Low-level API
196+ :sync: lowLevel
186197This is how you can update a document, for example to add a new field, by using the low-level API:
187198
188199``` go 
@@ -191,6 +202,7 @@ client.Update("my_index", "id", strings.NewReader(`{doc: { language: "Go" }}`))
191202::::::
192203
193204::::::{tab-item} Fully-typed API
205+ :sync: typed
194206This is how you can update a document with the fully-typed API:
195207
196208``` go 
@@ -206,14 +218,16 @@ typedClient.Update("my_index", "id").
206218#### Deleting documents [ _ deleting_documents]   
207219
208220:::::::{tab-set}
209- 
221+ :group: apis 
210222::::::{tab-item} Low-level API
223+ :sync: lowLevel
211224``` go 
212225client.Delete (" my_index"  , " id"  )
213226``` 
214227::::::
215228
216229::::::{tab-item} Fully-typed API
230+ :sync: typed
217231``` go 
218232typedClient.Delete (" my_index"  , " id"  ).Do (context.TODO ())
219233``` 
@@ -224,14 +238,16 @@ typedClient.Delete("my_index", "id").Do(context.TODO())
224238#### Deleting an index [ _ deleting_an_index]   
225239
226240:::::::{tab-set}
227- 
241+ :group: apis 
228242::::::{tab-item} Low-level API
243+ :sync: lowLevel
229244``` go 
230245client.Indices .Delete ([]string {" my_index"  })
231246``` 
232247::::::
233248
234249::::::{tab-item} Fully-typed API
250+ :sync: typed
235251``` go 
236252typedClient.Indices .Delete (" my_index"  ).Do (context.TODO ())
237253``` 
0 commit comments