CreateIndexRequestBuilder and mappings from JSON (Java)

On Thu, Oct 13, 2011 at 4:39 PM, Jérémie BORDIER
jeremie.bordier@gmail.com wrote:

Hi,

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 :slight_smile:

Jérémie