Package org.elasticsearch.action.admin.indices.template.put

Examples of org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateResponse


    String source = readTemplate(template);
    if (source != null) {
      if (logger.isTraceEnabled())
        logger.trace("Template [" + template + "]=" + source);
      // Create template
      final PutIndexTemplateResponse response = client.admin().indices()
          .preparePutTemplate(template).setSource(source).execute()
          .actionGet();
      if (!response.isAcknowledged()) {
        throw new Exception("Could not define template [" + template
            + "].");
      } else {
        if (logger.isDebugEnabled()) {
          logger.debug("Template [" + template
View Full Code Here

TOP

Related Classes of org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.