I would like to create my indexes from a template stored in a JSON
file using the CreateIndexRequestBuilder class (Java).
Unfortunately, it seems that the CreateIndexRequestBuilder object
misses a method .source() and is also inconsistent in its members:
setSettings(source) exists but setMappings(source) does not.
Is there any reason for that or I am missing something ?
I would like to create my indexes from a template stored in a JSON
file using the CreateIndexRequestBuilder class (Java).
Unfortunately, it seems that the CreateIndexRequestBuilder object
misses a method .source() and is also inconsistent in its members:
setSettings(source) exists but setMappings(source) does not.
Is there any reason for that or I am missing something ?
Thanks,
Jérémie
Additionally, it does not seem to be able to configure Aliases
directly through this call, whereas it is possible through the JSON +
HTTP API.
If anybody has an hint, I'm really struggling with this
I would like to create my indexes from a template stored in a JSON
file using the CreateIndexRequestBuilder class (Java).
Unfortunately, it seems that the CreateIndexRequestBuilder object
misses a method .source() and is also inconsistent in its members:
setSettings(source) exists but setMappings(source) does not.
Is there any reason for that or I am missing something ?
Thanks,
Jérémie
Additionally, it does not seem to be able to configure Aliases
directly through this call, whereas it is possible through the JSON +
HTTP API.
If anybody has an hint, I'm really struggling with this
Thanks for your answer, unfortunately my original question was how to
fill a CreateIndexRequest using a JSON string, just as you can do an
IndexRequest#source(String json).
I would like to create my indexes from a template stored in a JSON
file using the CreateIndexRequestBuilder class (Java).
Unfortunately, it seems that the CreateIndexRequestBuilder object
misses a method .source() and is also inconsistent in its members:
setSettings(source) exists but setMappings(source) does not.
Is there any reason for that or I am missing something ?
Thanks,
Jérémie
Additionally, it does not seem to be able to configure Aliases
directly through this call, whereas it is possible through the JSON +
HTTP API.
If anybody has an hint, I'm really struggling with this
CreateIndexRequestBuilder has a method called addMapping(String type, String
source), you can use that one to add a mapping defined in json as a String.
Is that what you are after?
Thanks for your answer, unfortunately my original question was how to
fill a CreateIndexRequest using a JSON string, just as you can do an
IndexRequest#source(String json).
I would like to create my indexes from a template stored in a JSON
file using the CreateIndexRequestBuilder class (Java).
Unfortunately, it seems that the CreateIndexRequestBuilder object
misses a method .source() and is also inconsistent in its members:
setSettings(source) exists but setMappings(source) does not.
Is there any reason for that or I am missing something ?
Thanks,
Jérémie
Additionally, it does not seem to be able to configure Aliases
directly through this call, whereas it is possible through the JSON +
HTTP API.
If anybody has an hint, I'm really struggling with this
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.