public function terms($field, array $terms, array $attributes = [])
    {
        $query = new TermsQuery($field, $terms, $attributes);

        $this->append($query);

        return $this;
    }
public function terms($field, array $terms, array $attributes = [])
    {
        $query = new TermsQuery($field, $terms, $attributes);

        $this->append($query);

        return $this;
    }
public function terms ( $ field , array $ terms , array $ attributes = [ ] ) { $ query = new TermsQuery ( $ field , $ terms , $ attributes ) ; $ this -> append ( $ query ) ; return $ this ; }
Add an terms query.

@param string $field
@param array  $terms
@param array  $attributes

@return $this
Add an terms query .