Package com.dotcms.repackage.org.elasticsearch.action.admin.indices.create

Examples of com.dotcms.repackage.org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder


    Map map = new ObjectMapper().readValue(settings, LinkedHashMap.class);
    map.put("number_of_shards", shards);


        // create actual index
    CreateIndexRequestBuilder cirb = iac.prepareCreate(indexName).setSettings(map);
        CreateIndexResponse createIndexResponse = cirb.execute().actionGet();

        AdminLogger.log(this.getClass(), "createIndex",
                "Index created: " + indexName + " with shards: " + shards);

    return createIndexResponse;
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder

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.