Package org.leskes.elasticfacets.cache

Examples of org.leskes.elasticfacets.cache.CacheStatsPerFieldRequest


    }

    @Test
    public void TestEmpty() throws ExecutionException, InterruptedException {
        CacheStatsPerFieldResponse r = client.admin().cluster()
                .execute(CacheStatsPerFieldAction.INSTANCE, new CacheStatsPerFieldRequest())
                .get();

        for (CacheStatsPerFieldStats s : r) {
            assertThat(s.fieldEntries().size(), equalTo(0));
        }
View Full Code Here


            clearCache();
            facetOnTags();


            CacheStatsPerFieldResponse r = client.admin().cluster()
                    .execute(CacheStatsPerFieldAction.INSTANCE, new CacheStatsPerFieldRequest())
                    .get();

            for (CacheStatsPerFieldStats s : r) {
                assertThat(s.fieldEntries().size(), equalTo(1));
                assertThat(s.fieldEntries().get(0).fieldName, equalTo("tag"));
View Full Code Here

    public void TestJSONResponse() throws Exception {

        facetOnTags();

        CacheStatsPerFieldResponse r = client.admin().cluster()
                .execute(CacheStatsPerFieldAction.INSTANCE, new CacheStatsPerFieldRequest())
                .get();

        XContentBuilder builder = jsonBuilder();
        builder.startObject();
        r.toXContent(builder, ToXContent.EMPTY_PARAMS);
View Full Code Here

TOP

Related Classes of org.leskes.elasticfacets.cache.CacheStatsPerFieldRequest

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.