src/Query/Geo/GeoShapeQuery.php
public function addPreIndexedShape($field, $id, $type, $index, $path, array $parameters = [])
    {
        $filter = array_merge(
            $parameters,
            [
                'id' => $id,
                'type' => $type,
                'index' => $index,
                'path' => $path,
            ]
        );

        $this->fields[$field]['indexed_shape'] = $filter;
    }
public function addPreIndexedShape($field, $id, $type, $index, $path, array $parameters = [])
    {
        $filter = array_merge(
            $parameters,
            [
                'id' => $id,
                'type' => $type,
                'index' => $index,
                'path' => $path,
            ]
        );

        $this->fields[$field]['indexed_shape'] = $filter;
    }
public function addPreIndexedShape ( $ field , $ id , $ type , $ index , $ path , array $ parameters = [ ] ) { $ filter = array_merge ( $ parameters , [ 'id' => $ id , 'type' => $ type , 'index' => $ index , 'path' => $ path , ] ) ; $ this -> fields [ $ field ] [ 'indexed_shape' ] = $ filter ; }
Add geo-shape pre-indexed filter.

@param string $field      Field name.
@param string $id         The ID of the document that containing the pre-indexed shape.
@param string $type       Name of the index where the pre-indexed shape is.
@param string $index      Index type where the pre-indexed shape is.
@param string $path       The field specified as path containing the pre-indexed shape.
@param array  $parameters Additional parameters.
Add geo - shape pre - indexed filter .