rename index in elasticsearch

Ads
 

rename index in elasticsearch

How to rename index in elasticsearch?

I have an index with millions of records in it. I want to rename this index to another name. There is some business requirement to rename it. What is the command to rename index in elasticsearch?

I am using Elasticsearch 6.1.

Thanks

View Answers

May 18, 2018 at 1:22 AM

Hi,

Elasticsearch does not allow to rename the index.

But you can copy index into another index and then delete old index.

Here is command to copy one index into another:

POST /_reindex
{
  "source": {
    "index": "oldindexname"
  },
  "dest": {
    "index": "new_indexname"
  }
}

Above command will copy index oldindexname into new_indexname.

Following command can bee used to delete index:

DELETE oldindexname

thanks

Ads









Related Tutorials/Questions & Answers:
rename index in elasticsearch
rename index in elasticsearch  How to rename index in elasticsearch... is the command to rename index in elasticsearch? I am using Elasticsearch 6.1. Thanks   Hi, Elasticsearch does not allow to rename the index. But you can copy
how to get type names of elasticsearch index in python
how to get type names of elasticsearch index in python  Hi, how I can get the list of indexes in elasticsearch with rest call? how to get type names of elasticsearch index in python? Thanks   Hi, You can use thee
Advertisements
rename the column in sql
rename the column in sql   How can i rename the column name in SQL
ModuleNotFoundError: No module named 'rename'
ModuleNotFoundError: No module named 'rename'  Hi, My Python... 'rename' How to remove the ModuleNotFoundError: No module named 'rename'... to install padas library. You can install rename python with following command
How to rename a file in Java?
How to rename a file in Java?  Hi, What is the code for renaming a file? How to rename a file in Java? Thanks   Hi, You can use the renameTo() method for renaming a file or directory. Check tutorial at Rename
rename before uploading
rename before uploading  I need to change (rename)the file name/image name before uploading it so that the file gets uploaded on server with this new name
rename project in iphone
rename project in iphone  hello, I have a lot of code that I've... to rename the project then tell me How can I rename my project and app in XCode...;Rename
ModuleNotFoundError: No module named 'batch-rename'
ModuleNotFoundError: No module named 'batch-rename'  Hi, My Python... 'batch-rename' How to remove the ModuleNotFoundError: No module named 'batch-rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'bulk-rename'
ModuleNotFoundError: No module named 'bulk-rename'  Hi, My Python... 'bulk-rename' How to remove the ModuleNotFoundError: No module named 'bulk-rename' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'github-rename'
ModuleNotFoundError: No module named 'github-rename'  Hi, My... 'github-rename' How to remove the ModuleNotFoundError: No module named 'github-rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'mass_rename'
ModuleNotFoundError: No module named 'mass_rename'  Hi, My Python... 'mass_rename' How to remove the ModuleNotFoundError: No module named 'mass_rename' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'mass_rename'
ModuleNotFoundError: No module named 'mass_rename'  Hi, My Python... 'mass_rename' How to remove the ModuleNotFoundError: No module named 'mass_rename' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'multi-rename'
ModuleNotFoundError: No module named 'multi-rename'  Hi, My Python... 'multi-rename' How to remove the ModuleNotFoundError: No module named 'multi-rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pdfs-rename'
ModuleNotFoundError: No module named 'pdfs-rename'  Hi, My Python... 'pdfs-rename' How to remove the ModuleNotFoundError: No module named 'pdfs-rename' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'project-rename'
ModuleNotFoundError: No module named 'project-rename'  Hi, My... named 'project-rename' How to remove the ModuleNotFoundError: No module named 'project-rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'project-rename'
ModuleNotFoundError: No module named 'project-rename'  Hi, My... named 'project-rename' How to remove the ModuleNotFoundError: No module named 'project-rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'project-rename'
ModuleNotFoundError: No module named 'project-rename'  Hi, My... named 'project-rename' How to remove the ModuleNotFoundError: No module named 'project-rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'rename_files'
ModuleNotFoundError: No module named 'rename_files'  Hi, My Python... 'rename_files' How to remove the ModuleNotFoundError: No module named 'rename_files' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'rename-guru'
ModuleNotFoundError: No module named 'rename-guru'  Hi, My Python... 'rename-guru' How to remove the ModuleNotFoundError: No module named 'rename-guru' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'smart_rename'
ModuleNotFoundError: No module named 'smart_rename'  Hi, My Python... 'smart_rename' How to remove the ModuleNotFoundError: No module named 'smart_rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'torrent_rename'
ModuleNotFoundError: No module named 'torrent_rename'  Hi, My... named 'torrent_rename' How to remove the ModuleNotFoundError: No module named 'torrent_rename' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'tvsubs-rename'
ModuleNotFoundError: No module named 'tvsubs-rename'  Hi, My... 'tvsubs-rename' How to remove the ModuleNotFoundError: No module named 'tvsubs-rename' error? Thanks   Hi, In your python
Mysql Alter Rename Table
Mysql Alter Rename Table       Mysql Alter Rename Table is used to redefine and rename the existing... Alter Rename Table'. To understand this example we create a table 'employees
FTPClient : Rename Remote File
In this tutorial, you will learn how to rename file on the server by using FTPClient class
index of javaprogram
index of javaprogram  what is the step of learning java. i am not asking syllabus am i am asking the step of program to teach a pesonal student.   To learn java, please visit the following link: Java Tutorial
index
ModuleNotFoundError: No module named 'ahlev-django-auth-rename'
ModuleNotFoundError: No module named 'ahlev-django-auth-rename'  Hi...: No module named 'ahlev-django-auth-rename' How to remove the ModuleNotFoundError: No module named 'ahlev-django-auth-rename' error? Thanks  
ModuleNotFoundError: No module named 'git-rename-authors'
ModuleNotFoundError: No module named 'git-rename-authors'  Hi, My... named 'git-rename-authors' How to remove the ModuleNotFoundError: No module named 'git-rename-authors' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'git-rename-authors'
ModuleNotFoundError: No module named 'git-rename-authors'  Hi, My... named 'git-rename-authors' How to remove the ModuleNotFoundError: No module named 'git-rename-authors' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'rename-beep-files'
ModuleNotFoundError: No module named 'rename-beep-files'  Hi, My... named 'rename-beep-files' How to remove the ModuleNotFoundError: No module named 'rename-beep-files' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'rename-package-files'
ModuleNotFoundError: No module named 'rename-package-files'  Hi...: No module named 'rename-package-files' How to remove the ModuleNotFoundError: No module named 'rename-package-files' error? Thanks   Hi

Ads