Cake\ElasticSearch\FilterBuilder::geoShapeIndex PHP Method

geoShapeIndex() public method

### Example: {{{ $filter = $builder->geoShapeIndex('location', 'DEU', 'countries', 'shapes', 'location'); }}}
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-filter.html
public geoShapeIndex ( string $field, string $id, string $type, string $index = 'shapes', string $path = 'shape' ) : Elastica\Filter\GeoShapePreIndexed
$field string The field to compare.
$id string The ID of the document containing the pre-indexed shape.
$type string Index type where the pre-indexed shape is.
$index string Name of the index where the pre-indexed shape is.
$path string The field specified as path containing the pre-indexed shape.
return Elastica\Filter\GeoShapePreIndexed
    public function geoShapeIndex($field, $id, $type, $index = 'shapes', $path = 'shape')
    {
        return new Filter\GeoShapePreIndexed($field, $id, $type, $index, $path);
    }