public void with_profiling_basic() {
Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
SearchClient searchClient = new SearchClient(new Settings(), profiling);
try {
MultiGetRequestBuilder request = searchClient.prepareMultiGet();
request.add(new MultiGetRequest.Item(IndexDefinition.RULE.getIndexName(), IndexDefinition.RULE.getIndexType(), "ruleKey")
.fetchSourceContext(FetchSourceContext.FETCH_SOURCE));
request.get();
// expected to fail because elasticsearch is not correctly configured, but that does not matter