Is there any way to create index on server (with mappings) without using
curl or java api? Is there any way in which i can add configuration to
files of my elastic search server which will create index if it doesn't
exist? the reason i need this is because access to env's through curl has
been disabled and we have lot of indexes with numerous mapping that have to
be created on 10 different environments.
By default, Elasticsearch creates an index if it doesn't exist. If you want
them to be created with some specific mappings and settings, I suggest you
use index templates:
You can see there that you have the option of putting templates in your
configuration directory. Please note that you don't need to restart
Elasticsearch if you change a config template. When creating a new index,
it will look at the template as it's defined at that point.
On Saturday, October 13, 2012 12:16:54 AM UTC+3, hemantp wrote:
Hi,
Is there any way to create index on server (with mappings) without using
curl or java api? Is there any way in which i can add configuration to
files of my Elasticsearch server which will create index if it doesn't
exist? the reason i need this is because access to env's through curl has
been disabled and we have lot of indexes with numerous mapping that have to
be created on 10 different environments.
Le vendredi 12 octobre 2012 23:16:54 UTC+2, hemantp a écrit :
Hi,
Is there any way to create index on server (with mappings) without using
curl or java api? Is there any way in which i can add configuration to
files of my Elasticsearch server which will create index if it doesn't
exist? the reason i need this is because access to env's through curl has
been disabled and we have lot of indexes with numerous mapping that have to
be created on 10 different environments.
Le vendredi 12 octobre 2012 23:16:54 UTC+2, hemantp a écrit :
Hi,
Is there any way to create index on server (with mappings) without using curl or java api? Is there any way in which i can add configuration to files of my Elasticsearch server which will create index if it doesn't exist? the reason i need this is because access to env's through curl has been disabled and we have lot of indexes with numerous mapping that have to be created on 10 different environments.
thanks radu, tanguy and david. all options suggested worked great. i
decided to go with index templates as i needed configurations to reside on
es package on servers.
On Saturday, October 13, 2012 4:31:50 AM UTC-7, Radu Gheorghe wrote:
By default, Elasticsearch creates an index if it doesn't exist. If you
want them to be created with some specific mappings and settings, I suggest
you use index templates:
You can see there that you have the option of putting templates in your
configuration directory. Please note that you don't need to restart
Elasticsearch if you change a config template. When creating a new index,
it will look at the template as it's defined at that point.
On Saturday, October 13, 2012 12:16:54 AM UTC+3, hemantp wrote:
Hi,
Is there any way to create index on server (with mappings) without using
curl or java api? Is there any way in which i can add configuration to
files of my Elasticsearch server which will create index if it doesn't
exist? the reason i need this is because access to env's through curl has
been disabled and we have lot of indexes with numerous mapping that have to
be created on 10 different environments.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.