src/ElasticSearch/DSL/Query.php
public function build() {
        $built = array();
        if ($this->term)
            $built['term'] = $this->term;
        elseif ($this->range)
            $built['range'] = $this->range->build();
        elseif ($this->wildcard)
            $built['wildcard'] = $this->wildcard;
        return $built;
    }
public function build() {
        $built = array();
        if ($this->term)
            $built['term'] = $this->term;
        elseif ($this->range)
            $built['range'] = $this->range->build();
        elseif ($this->wildcard)
            $built['wildcard'] = $this->wildcard;
        return $built;
    }
public function build ( ) { $ built = array ( ) ; if ( $ this -> term ) $ built [ 'term' ] = $ this -> term ; elseif ( $ this -> range ) $ built [ 'range' ] = $ this -> range -> build ( ) ; elseif ( $ this -> wildcard ) $ built [ 'wildcard' ] = $ this -> wildcard ; return $ built ; }
Build the DSL as array

@return array
Build the DSL as array