@Test
public void with_profiling_basic() {
try {
Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
SearchClient searchClient = new SearchClient(new Settings(), profiling);
SearchResponse search = searchClient.prepareSearch(IndexDefinition.RULE.getIndexName())
.setSearchType(SearchType.SCAN)
.setScroll(TimeValue.timeValueSeconds(3L))
.get();
searchClient.prepareSearchScroll(search.getScrollId()).get();