Skip to content

Commit b854c92

Browse files
add missing test2 index in alias example (#39212) (#39214)
* 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 8150ca4 commit b854c92

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
@@ -269,12 +269,18 @@ POST /_aliases
269269
"alias" : "alias1",
270270
"is_write_index" : true
271271
}
272+
},
273+
{
274+
"add" : {
275+
"index" : "test2",
276+
"alias" : "alias1"
277+
}
272278
}
273279
]
274280
}
275281
--------------------------------------------------
276282
// CONSOLE
277-
// TEST[s/^/PUT test\n/]
283+
// TEST[s/^/PUT test\nPUT test2\n/]
278284

279285
In this example, we associate the alias `alias1` to both `test` and `test2`, where
280286
`test` will be the index chosen for writing to.
@@ -311,13 +317,13 @@ POST /_aliases
311317
"add" : {
312318
"index" : "test",
313319
"alias" : "alias1",
314-
"is_write_index" : true
320+
"is_write_index" : false
315321
}
316322
}, {
317323
"add" : {
318324
"index" : "test2",
319325
"alias" : "alias1",
320-
"is_write_index" : false
326+
"is_write_index" : true
321327
}
322328
}
323329
]

0 commit comments

Comments
 (0)