-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
>docsGeneral docs changesGeneral docs changesTeam:DocsMeta label for docs teamMeta label for docs team
Description
#58917 introduced require_alias for index operations. Included in this the _bulk API both by line item and by query parameter. However, it looks like the documentation was missed.
For example:
POST _bulk
{ "create" : { "_index" : "test_alias", "require_alias" : true } }
{ "@timestamp" : "1" }
and
POST _bulk?require_alias=true
{ "create" : { "_index" : "test_alias" } }
{ "@timestamp" : "1" }
Will correctly fail with
{
"took" : 0,
"errors" : true,
"items" : [
{
"create" : {
"_index" : "test_alias",
"_type" : "_doc",
"_id" : null,
"status" : 404,
"error" : {
"type" : "index_not_found_exception",
"reason" : "no such index [test_alias] and [require_alias] request flag is [true] and [test_alias] is not an alias",
"index_uuid" : "_na_",
"index" : "test_alias"
}
}
}
]
}
since there is not an alias named "test_alias". We should document this new flag.
Metadata
Metadata
Assignees
Labels
>docsGeneral docs changesGeneral docs changesTeam:DocsMeta label for docs teamMeta label for docs team