public function searchByQuery($query, $options = [])
    {
        $options = array_merge(['query' => $query], $options);

        return App::make('iverberk.larasearch.query', ['proxy' => $this, 'term' => null, 'options' => $options])->execute();
    }
public function searchByQuery($query, $options = [])
    {
        $options = array_merge(['query' => $query], $options);

        return App::make('iverberk.larasearch.query', ['proxy' => $this, 'term' => null, 'options' => $options])->execute();
    }
public function searchByQuery ( $ query , $ options = [ ] ) { $ options = array_merge ( [ 'query' => $ query ] , $ options ) ; return App :: make ( 'iverberk.larasearch.query' , [ 'proxy' => $ this , 'term' => null , 'options' => $ options ] ) -> execute ( ) ; }
Performs a search based on a custom Elasticsearch query

@param array $query
@param array $options
@return \Iverberk\Larasearch\Response
Performs a search based on a custom Elasticsearch query