getType()
getType() : string
must return type for QueryBuilder usage.
elasticsearch filter DSL.
bool_and(array<mixed,\Elastica\Filter\AbstractFilter> $filters = array()) : \Elastica\Filter\BoolAnd
and filter.
array<mixed,\Elastica\Filter\AbstractFilter> | $filters |
bool() : \Elastica\Filter\Bool
bool filter.
exists(string $field) : \Elastica\Filter\Exists
exists filter.
string | $field |
geo_bounding_box(string $key, array $coordinates) : \Elastica\Filter\GeoBoundingBox
geo bounding box filter.
string | $key | |
array | $coordinates |
geo_distance(string $key, array|string $location, string $distance) : \Elastica\Filter\GeoDistance
geo distance filter.
string | $key | Key |
array|string | $location | Location as array or geohash: array('lat' => 48.86, 'lon' => 2.35) OR 'drm3btev3e86' |
string | $distance | Distance |
geo_distance_range(string $key, array|string $location, array $ranges = array()) : \Elastica\Filter\GeoDistanceRange
geo distance rangefilter.
string | $key | |
array|string | $location | |
array | $ranges |
geo_polygon(string $key, array $points) : \Elastica\Filter\GeoPolygon
geo polygon filter.
string | $key | Key |
array | $points | Points making up polygon |
geo_shape_provided(string $path, array $coordinates, string $shapeType = \Elastica\Filter\GeoShapeProvided::TYPE_ENVELOPE) : \Elastica\Filter\GeoShapeProvided
provided geo shape filter.
string | $path | |
array | $coordinates | |
string | $shapeType |
geo_shape_pre_indexed(string $path, string $indexedId, string $indexedType, string $indexedIndex, string $indexedPath) : \Elastica\Filter\GeoShapePreIndexed
pre indexed geo shape filter.
string | $path | The path/field of the shape searched |
string | $indexedId | Id of the pre-indexed shape |
string | $indexedType | Type of the pre-indexed shape |
string | $indexedIndex | Index of the pre-indexed shape |
string | $indexedPath | Path of the pre-indexed shape |
geohash_cell(string $key, array|string $location, integer|string $precision = -1, boolean $neighbors = false) : \Elastica\Filter\GeohashCell
geohash cell filter.
string | $key | The field on which to filter |
array|string | $location | Location as coordinates array or geohash string ['lat' => 40.3, 'lon' => 45.2] |
integer|string | $precision | length of geohash prefix or distance (3, or "50m") |
boolean | $neighbors | If true, filters cells next to the given cell. |
has_child(\Elastica\Query\AbstractQuery|\Elastica\Filter\AbstractFilter $query, string $type = null) : \Elastica\Filter\HasChild
has child filter.
\Elastica\Query\AbstractQuery|\Elastica\Filter\AbstractFilter | $query | |
string | $type |
has_parent(\Elastica\Query\AbstractQuery|\Elastica\Filter\AbstractFilter $query, string $type) : \Elastica\Filter\HasParent
has parent filter.
\Elastica\Query\AbstractQuery|\Elastica\Filter\AbstractFilter | $query | |
string | $type |
ids(string|\Elastica\Type $type = null, array $ids = array()) : \Elastica\Filter\Ids
ids filter.
string|\Elastica\Type | $type | |
array | $ids |
indices(\Elastica\Filter\AbstractFilter $filter, array<mixed,string> $indices) : \Elastica\Filter\Indices
indices filter.
\Elastica\Filter\AbstractFilter | $filter | filter which will be applied to docs in the specified indices |
array<mixed,string> | $indices |
limit(integer $limit) : \Elastica\Filter\Limit
limit filter.
integer | $limit | Limit |
match_all() : \Elastica\Filter\MatchAll
match all filter.
missing(string $field = '') : \Elastica\Filter\Missing
missing filter.
string | $field |
nested() : \Elastica\Filter\Nested
nested filter.
bool_not(\Elastica\Filter\AbstractFilter $filter) : \Elastica\Filter\BoolNot
not filter.
\Elastica\Filter\AbstractFilter | $filter |
numeric_range(string $fieldName = '', array $args = array()) : \Elastica\Filter\NumericRange
numeric range filter.
string | $fieldName | Field name |
array | $args | Field arguments |
bool_or(array<mixed,\Elastica\Filter\AbstractFilter> $filters = array()) : \Elastica\Filter\BoolOr
or filter.
array<mixed,\Elastica\Filter\AbstractFilter> | $filters |
prefix(string $field = '', string $prefix = '') : \Elastica\Filter\Prefix
prefix filter.
string | $field | |
string | $prefix |
query(array|\Elastica\Query\AbstractQuery $query = null) : \Elastica\Filter\Query
query filter.
array|\Elastica\Query\AbstractQuery | $query |
range(string $fieldName = '', array $args = array()) : \Elastica\Filter\Range
range filter.
string | $fieldName | |
array | $args |
regexp(string $field = '', string $regexp = '', array $options = array()) : \Elastica\Filter\Regexp
regexp filter.
string | $field | Field name |
string | $regexp | Regular expression |
array | $options | Regular expression options |
script(array|string|\Elastica\Script\Script $script = null) : \Elastica\Filter\Script
script filter.
array|string|\Elastica\Script\Script | $script |
term(array $term = array()) : \Elastica\Filter\Term
term filter.
array | $term |
terms(string $key = '', array $terms = array()) : \Elastica\Filter\Terms
terms filter.
string | $key | |
array | $terms |
type(string $type = null) : \Elastica\Filter\Type
type filter.
string | $type |