I want to create an index using the Java API.
I'm using a TransportClient and want to create a new Index, what is the Java
API to do this?
client.prepareIndex can't be used for this.
Thanks in advance
Jürgen
I want to create an index using the Java API.
I'm using a TransportClient and want to create a new Index, what is the Java
API to do this?
client.prepareIndex can't be used for this.
Thanks in advance
Jürgen
Ok, got it:
client.admin().indices().create(new
CreateIndexRequest(indexname)).actionGet();
Sorry for the noise.
On Thu, Aug 25, 2011 at 9:01 PM, Jürgen kartnaller <
juergen.kartnaller@gmail.com> wrote:
I want to create an index using the Java API.
I'm using a TransportClient and want to create a new Index, what is the
Java API to do this?client.prepareIndex can't be used for this.
Thanks in advance
Jürgen
© 2020. All Rights Reserved - Elasticsearch
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.