Examples of tookInMillis()


Examples of org.elasticsearch.action.search.SearchResponse.tookInMillis()

                    .addFacet(termsFacet(field).field(field).executionHint(executionHint))
                    .execute().actionGet();
            if (searchResponse.hits().totalHits() != COUNT) {
                System.err.println("--> mismatch on hits");
            }
            totalQueryTime += searchResponse.tookInMillis();
        }
        System.out.println("--> Terms Facet (" + field + "), hint(" + executionHint + "): " + (totalQueryTime / QUERY_COUNT) + "ms");
        return new StatsResult(name, totalQueryTime);
    }
View Full Code Here

Examples of org.elasticsearch.action.search.SearchResponse.tookInMillis()

                    .addFacet(termsStatsFacet(name).keyField(keyField).valueField(valueField))
                    .execute().actionGet();
            if (searchResponse.hits().totalHits() != COUNT) {
                System.err.println("--> mismatch on hits");
            }
            totalQueryTime += searchResponse.tookInMillis();
        }
        System.out.println("--> Terms Facet (" + name + "), hint(" + executionHint + "): " + (totalQueryTime / QUERY_COUNT) + "ms");
        return new StatsResult(name, totalQueryTime);
    }
}
View Full Code Here

Examples of org.elasticsearch.action.search.SearchResponse.tookInMillis()

        for (int j = 0; j < QUERY_COUNT; j++) {
            SearchResponse searchResponse = client.prepareSearch()
                    .setSearchType(SearchType.COUNT)
                    .setQuery(termQuery("l_value", lValues[0]))
                    .execute().actionGet();
            totalQueryTime += searchResponse.tookInMillis();
        }
        System.out.println("-->  Simple Query on first l_value " + (totalQueryTime / QUERY_COUNT) + "ms");

        totalQueryTime = 0;
        for (int j = 0; j < QUERY_COUNT; j++) {
View Full Code Here

Examples of org.elasticsearch.action.search.SearchResponse.tookInMillis()

            SearchResponse searchResponse = client.prepareSearch()
                    .setSearchType(SearchType.COUNT)
                    .setQuery(termQuery("l_value", lValues[0]))
                    .addFacet(FacetBuilders.queryFacet("query").query(termQuery("l_value", lValues[0])))
                    .execute().actionGet();
            totalQueryTime += searchResponse.tookInMillis();
        }
        System.out.println("-->  Query facet first l_value " + (totalQueryTime / QUERY_COUNT) + "ms");

        totalQueryTime = 0;
        for (int j = 0; j < QUERY_COUNT; j++) {
View Full Code Here

Examples of org.elasticsearch.action.search.SearchResponse.tookInMillis()

            SearchResponse searchResponse = client.prepareSearch()
                    .setSearchType(SearchType.COUNT)
                    .setQuery(termQuery("l_value", lValues[0]))
                    .addFacet(FacetBuilders.queryFacet("query").query(termQuery("l_value", lValues[0])).global(true))
                    .execute().actionGet();
            totalQueryTime += searchResponse.tookInMillis();
        }
        System.out.println("-->  Query facet first l_value (global) " + (totalQueryTime / QUERY_COUNT) + "ms");
    }
}
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.