Each term suggester is represented by a its own object, which allows for more user-friendly configuration.
Additionally, with the addition of Elastica\Suggest\Phrase, phrase and term suggest operations can now be performed in the same query:
12345678
$suggest=newElastica\Suggest();$term=newElastica\Suggest\Term('term','_all');$term->setText('Foor')->setSize(4);$suggest->addSuggestion($term1);$phrase=newElastica\Suggest\Phrase('phrase','_all');$phrase->setText('Elasticsearch is bansai coor');$suggest->addSuggestion($phrase);$result=$index->search($suggest);