Skip to content

Commit 0c74798

Browse files
committed
docs: sync tab groups in reference documentation
1 parent a5c573d commit 0c74798

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

docs/reference/getting-started.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3233
You 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
4345
You 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
7578
This 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
8387
This 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
97102
This 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
111117
This 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
133140
You 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
141149
This 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
155164
This 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
167177
This 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
186197
This 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
194206
This 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
212225
client.Delete("my_index", "id")
213226
```
214227
::::::
215228

216229
::::::{tab-item} Fully-typed API
230+
:sync: typed
217231
```go
218232
typedClient.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
230245
client.Indices.Delete([]string{"my_index"})
231246
```
232247
::::::
233248

234249
::::::{tab-item} Fully-typed API
250+
:sync: typed
235251
```go
236252
typedClient.Indices.Delete("my_index").Do(context.TODO())
237253
```

docs/reference/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ Full documentation is hosted at [GitHub](https://github.com/elastic/go-elasticse
2222
## Usage [_usage]
2323

2424
:::::::{tab-set}
25-
25+
:group: apis
2626
::::::{tab-item} Low-level API
27+
:sync: lowLevel
2728
```go
2829
package main
2930

@@ -41,6 +42,7 @@ func main() {
4142
::::::
4243

4344
::::::{tab-item} Fully-typed API
45+
:sync: typed
4446
```go
4547
package main
4648

0 commit comments

Comments
 (0)