}
@Test public void testDirectDfs() throws Exception {
DfsSearchResult dfsResult = searchService.executeDfsPhase(searchRequest(searchSource().query(termQuery("name", "test1")), SearchType.DFS_QUERY_THEN_FETCH));
assertThat(dfsResult.terms().length, equalTo(1));
assertThat(dfsResult.freqs().length, equalTo(1));
assertThat(dfsResult.terms()[0].field(), equalTo("name"));
assertThat(dfsResult.terms()[0].text(), equalTo("test1"));
assertThat(dfsResult.freqs()[0], equalTo(1));
}