-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index Aliases #88
Comments
Index Aliases, closed by 8f32467. |
the yaml example, of creating alias during creation of index request, can you give me json post data of the same |
rmuir
pushed a commit
to rmuir/elasticsearch
that referenced
this issue
Nov 8, 2015
* exclude *StarndaloneTest*.class from test target * add cleanup to MultifieldAttachementMapperTests for terminating ThreadPool * Modify MapperTestUtils.newMapperService for adding ThreadPool Closes elastic#88
IanvsPoplicola
pushed a commit
to IanvsPoplicola/elasticsearch
that referenced
this issue
Mar 21, 2017
Update Coordination.md claim 23646
ClaudioMFreitas
pushed a commit
to ClaudioMFreitas/elasticsearch-1
that referenced
this issue
Nov 12, 2019
Removed bare variables
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow to define aliases to indices, and have all APIs support that. Here is a simple way to define the alias using the REST API (
localhost:9200/_aliases
):In the above, we define an
alias1
for indextest1
. In all operations, we can usealias1
instead oftest1
. The API also allows to remove an alias from an index, and better yet remove and then add an alias for an index:In the above example, we simple remove
alias1
and addalias2
totest1
in a single, atomic operation.Last, but not least, an alias can be assigned to more than one index. This applies to APIs that accept more than one index, such as search and count. Instead of specifying a list of indices, we can just alias them to the same alias, and use it. For example:
Ohh, and index aliases can be set when creating an index, here is a YAML example:
The text was updated successfully, but these errors were encountered: