public function suggestStatement(array $suggestions) { return $this->elastic->suggest($this->setStatementIndex($suggestions)); }
/** * Execute the suggest query against elastic and return the raw result if model not set. * * @return array */ public function get() { return $this->connection->suggestStatement(['index' => $this->getIndex(), 'body' => $this->toDSL()]); }