elasticsearch/elasticsearch — pull request #7507 by areek (2014-08-28 20:38:48+00:00)
Title: Improved Suggest Client API:

- Added `SuggestBuilders` (analogous to `QueryBuilders`)
- supporting `term`, `phrase`, `completion` and `fuzzyCompletion` suggestion builders
- Added `suggest(SuggestionBuilder)` to `SuggestRequest`
- previously only `suggest(BytesReference)` was supported
- Use new `SuggestBuilders` methods in tests, instead of directly instantiating specific suggestion builder.

closes #7435