original_string: public static function geoshape($field, Array $coordinates, $type = 'envelope')
      {
          $body = array(
              'query' => array(
                  'geo_shape' => array(
                      $field => array(
                          'shape' => array(
                              'type' => $type,
                              'coordinates' => $coordinates
                          )
                      )
                  )
              ),
              'size' => 1000
          );
  
          return static::search($body);
      }
code: public static function geoshape($field, Array $coordinates, $type = 'envelope')
      {
          $body = array(
              'query' => array(
                  'geo_shape' => array(
                      $field => array(
                          'shape' => array(
                              'type' => $type,
                              'coordinates' => $coordinates
                          )
                      )
                  )
              ),
              'size' => 1000
          );
  
          return static::search($body);
      }
code_tokens: public static function geoshape ( $ field , Array $ coordinates , $ type = 'envelope' ) { $ body = array ( 'query' => array ( 'geo_shape' => array ( $ field => array ( 'shape' => array ( 'type' => $ type , 'coordinates' => $ coordinates ) ) ) ) , 'size' => 1000 ) ; return static :: search ( $ body ) ; }
docstring: Builds a geoshape query.
  
  @param string $field
  @param array $coordinates
  @param string $type
  @return ElasticCollection
docstring_tokens: Builds a geoshape query .