Package org.elasticsearch.action.indexedscripts.delete

Examples of org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptResponse


        SearchResponse searchResponse = client().prepareSearch("test").setTypes("type").
                setTemplateName("testTemplate").setTemplateType(ScriptService.ScriptType.INDEXED).setTemplateParams(templateParams).get();
        assertHitCount(searchResponse, 4);

        DeleteIndexedScriptResponse deleteResponse = client().prepareDeleteIndexedScript("mustache","testTemplate").get();
        assertTrue(deleteResponse.isFound());

        getResponse = client().prepareGetIndexedScript("mustache", "testTemplate").get();
        assertFalse(getResponse.isExists());

        client().prepareSearch("test").setTypes("type").
View Full Code Here

TOP

Related Classes of org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptResponse

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.