Package crate.elasticsearch.action.export

Examples of crate.elasticsearch.action.export.ExportRequest.source()


            setWaitForNodes("2").setWaitForRelocatingShards(0).execute().actionGet();

        // Do export request
        String source = "{\"output_cmd\": \"cat\", \"fields\": [\"name\"]}";
        ExportRequest exportRequest = new ExportRequest();
        exportRequest.source(source);
        ExportResponse response = esSetup2.client().execute(
                ExportAction.INSTANCE, exportRequest).actionGet();

        // The two shard results are from different nodes and have no failures
        assertEquals(0, response.getFailedShards());
View Full Code Here


     *
     * @param source
     */
    private ExportResponse executeExportRequest(String source) {
        ExportRequest exportRequest = new ExportRequest();
        exportRequest.source(source);
        return esSetup.client().execute(ExportAction.INSTANCE, exportRequest).actionGet();
    }

    /**
     * Get a list of lines from a file.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.