Skip to content

Commit 1f1deb1

Browse files
add missing test2 index in alias example (#39212) (#39216)
* missing 'test2' index example (#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read Co-authored-by: Guilherme Ferreira <[email protected]>
1 parent 3d78ecc commit 1f1deb1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/reference/indices/aliases.asciidoc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,18 @@ POST /_aliases
271271
"alias" : "alias1",
272272
"is_write_index" : true
273273
}
274+
},
275+
{
276+
"add" : {
277+
"index" : "test2",
278+
"alias" : "alias1"
279+
}
274280
}
275281
]
276282
}
277283
--------------------------------------------------
278284
// CONSOLE
279-
// TEST[s/^/PUT test\n/]
285+
// TEST[s/^/PUT test\nPUT test2\n/]
280286

281287
In this example, we associate the alias `alias1` to both `test` and `test2`, where
282288
`test` will be the index chosen for writing to.
@@ -313,13 +319,13 @@ POST /_aliases
313319
"add" : {
314320
"index" : "test",
315321
"alias" : "alias1",
316-
"is_write_index" : true
322+
"is_write_index" : false
317323
}
318324
}, {
319325
"add" : {
320326
"index" : "test2",
321327
"alias" : "alias1",
322-
"is_write_index" : false
328+
"is_write_index" : true
323329
}
324330
}
325331
]

0 commit comments

Comments
 (0)