Addressed some comments.
This commit is contained in:
parent
40c6f07871
commit
13f7a847c1
|
@ -1,14 +1,15 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: Create alias
|
title: Alias
|
||||||
parent: REST API reference
|
parent: REST API reference
|
||||||
grand_parent: OpenSearch
|
grand_parent: OpenSearch
|
||||||
nav_order: 8
|
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
|
## Example
|
||||||
|
|
||||||
|
@ -21,14 +22,27 @@ POST _aliases
|
||||||
"index": "movies",
|
"index": "movies",
|
||||||
"alias": "movies-alias1"
|
"alias": "movies-alias1"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"remove": {
|
||||||
|
"index": "old-index",
|
||||||
|
"alias": "old-index-alias"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Path and HTTP Methods
|
||||||
|
|
||||||
|
```
|
||||||
|
POST _aliases
|
||||||
|
```
|
||||||
|
|
||||||
## URL parameters
|
## URL parameters
|
||||||
|
|
||||||
Both create alias parameters are optional.
|
All alias parameters are optional.
|
||||||
|
|
||||||
Parameter | Data Type | Description
|
Parameter | Data Type | Description
|
||||||
:--- | :--- | :---
|
:--- | :--- | :---
|
||||||
|
|
Loading…
Reference in New Issue