Sleimanx2\Plastic\DSL\SuggestionBuilder::get PHP Method

get() public method

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