public function buildQuery(QueryInterface $query)
    {
        $searchQuery = false;
        $builder     = $this->getBuilder($query);

        if ($builder !== null) {
            $searchQuery = $builder->buildQuery($query);
        }

        return $searchQuery;
    }
public function buildQuery(QueryInterface $query)
    {
        $searchQuery = false;
        $builder     = $this->getBuilder($query);

        if ($builder !== null) {
            $searchQuery = $builder->buildQuery($query);
        }

        return $searchQuery;
    }
public function buildQuery ( QueryInterface $ query ) { $ searchQuery = false ; $ builder = $ this -> getBuilder ( $ query ) ; if ( $ builder !== null ) { $ searchQuery = $ builder -> buildQuery ( $ query ) ; } return $ searchQuery ; }
Build the ES query from a Query

@param QueryInterface $query Query to be built.

@return array
Build the ES query from a Query