From 13f7a847c1929e50a39c02a0a00d2546087f80a5 Mon Sep 17 00:00:00 2001 From: keithhc2 Date: Mon, 28 Jun 2021 10:36:41 -0700 Subject: [PATCH] Addressed some comments. --- _opensearch/rest-api/create-alias.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/_opensearch/rest-api/create-alias.md b/_opensearch/rest-api/create-alias.md index a255f921..bca73403 100644 --- a/_opensearch/rest-api/create-alias.md +++ b/_opensearch/rest-api/create-alias.md @@ -1,14 +1,15 @@ --- layout: default -title: Create alias +title: Alias parent: REST API reference grand_parent: OpenSearch nav_order: 8 --- -# Create alias +# Alias + +An alias is a virtual pointer that you can use to reference one or more indices. -An alias is a virtual pointer that you can use to reference one or more indices. For example, if you have continuous streams of incoming data but only want to search through the past seven days at any time, you can use an alias to point to only indices created within the past seven days. ## Example @@ -21,14 +22,27 @@ POST _aliases "index": "movies", "alias": "movies-alias1" } + }, + { + "remove": { + "index": "old-index", + "alias": "old-index-alias" + } } + ] } ``` +## Path and HTTP Methods + +``` +POST _aliases +``` + ## URL parameters -Both create alias parameters are optional. +All alias parameters are optional. Parameter | Data Type | Description :--- | :--- | :---