builder.queryAnalyzer(suggestionQuery.queryAnalyzer);
}
if (Strings.hasLength(suggestionQuery.analyzer)) {
builder.analyzer(suggestionQuery.analyzer);
}
builder.preservePositionIncrements(suggestionQuery.preservePositionIncrements);
SuggestResponse suggestResponse = builder.execute().actionGet();
assertThat(suggestResponse.getShardFailures(), is(emptyArray()));
return suggestResponse.suggestions();