Méthode |
Description |
|
__call ( string $method, array $args ) : Elastica\Filter\AbstractFilter |
Helps calling the and() and or() methods transparently. |
|
and_ ( ) |
@codingStandardsIgnoreStart |
|
between ( string $field, mixed $from, mixed $to ) : Elastica\Filter\Range |
Returns a Range filter object setup to filter documents having the field between
a from and a to value |
|
bool ( ) : Elastica\Filter\BoolFilter |
Returns a bool filter that can be chained with the addMust(), addShould()
and addMustNot() methods. |
|
exists ( string $field ) : Elastica\Filter\Exists |
Returns an Exists filter object setup to filter documents having a property present
or not set to null. |
|
geoBoundingBox ( string $field, array | string $topLeft, array | string $bottomRight ) : Elastica\Filter\GeoBoundingBox |
Returns a GeoBoundingBox filter object setup to filter documents having a property
bound by two coordinates. |
|
geoDistance ( string $field, array | string $location, string $distance ) : Elastica\Filter\GeoDistance |
Returns an GeoDistance filter object setup to filter documents having a property
in the radius distance of a coordinate. |
|
geoDistanceRange ( string $field, array | string $location, string $from, string $to ) : Elastica\Filter\GeoDistanceRange |
Returns an GeoDistanceRange filter object setup to filter documents having a property
in between two distance radius from a location coordinate. |
|
geoHashCell ( string $field, string | array $location, integer | string $precision, boolean $neighbors = false ) : Elastica\Filter\GeohashCell |
Returns an GeohashCell filter object setup to filter documents having a property
enclosed inside the specified geohash in teh give precision. |
|
geoPolygon ( string $field, array $geoPoints ) : Elastica\Filter\GeoPolygon |
Returns an GeoPolygon filter object setup to filter documents having a property
enclosed in the polygon induced by the passed geo points. |
|
geoShape ( string $field, array $geoPoints, string $type = 'envelope' ) : Elastica\Filter\GeoShapeProvided |
Returns an GeoShapeProvided filter object setup to filter documents having a property
enclosed in the specified geometrical shape type. |
|
geoShapeIndex ( string $field, string $id, string $type, string $index = 'shapes', string $path = 'shape' ) : Elastica\Filter\GeoShapePreIndexed |
Returns an GeoShapePreIndex filter object setup to filter documents having a property
enclosed in the specified geometrical shape type. |
|
gt ( string $field, mixed $value ) : Elastica\Filter\Range |
Returns a Range filter object setup to filter documents having the field
greater than the provided value. |
|
gte ( string $field, mixed $value ) : Elastica\Filter\Range |
Returns a Range filter object setup to filter documents having the field
greater than or equal the provided value. |
|
hasChild ( string | Query | Elastica\Filter\AbstractFilter $query, string $type ) : Elastica\Filter\HasChild |
Accepts a query and the child type to run against, and results in parent
documents that have child docs matching the query. |
|
hasParent ( string | Query | Elastica\Filter\AbstractFilter $query, string $type ) : Elastica\Filter\HasParent |
Filters by child documents having parent documents matching the query |
|
ids ( array $ids = [], string | array $type = null ) : Elastica\Filter\Ids |
Filters documents that only have the provided ids. |
|
indices ( array $indices, Elastica\Filter\AbstractFilter $match, Elastica\Filter\AbstractFilter $noMatch ) : Elastica\Filter\Indices |
The indices filter can be used when executed across multiple indices, allowing you to have a filter
that is only applied when executed on an index matching a specific list of indices, and another
filter that executes when it is executed on an index that does not match the listed indices. |
|
limit ( integer $limit ) : Elastica\Filter\Limit |
Limits the number of documents (per shard) to execute on. |
|
lt ( string $field, mixed $value ) : Elastica\Filter\Range |
Returns a Range filter object setup to filter documents having the field
smaller than the provided value. |
|
lte ( string $field, mixed $value ) : Elastica\Filter\Range |
Returns a Range filter object setup to filter documents having the field
smaller or equals than the provided value. |
|
matchAll ( ) : Elastica\Filter\MatchAll |
A filter that returns all documents. |
|
missing ( string $field = '' ) : Elastica\Filter\Missing |
Returns a Missing filter object setup to filter documents not having a property present or
not null. |
|
nested ( string $path, Elastica\Query\AbstractQuery | Elastica\Filter\AbstractFilter $filter ) : Elastica\Filter\Nested |
Returns a Nested filter object setup to filter sub documents by a path. |
|
not ( Elastica\Filter\AbstractFilter $filter ) : Elastica\Filter\BoolNot |
Returns a BoolNot filter that is typically ussed to negate another filter expression |
|
or_ ( ) |
@codingStandardsIgnoreStart |
|
parse ( array | Elastica\Filter\AbstractFilter $conditions ) : array |
Converts an array into a single array of filter objects |
|
prefix ( string $field, string $prefix ) : Elastica\Filter\Prefix |
Returns a Prefix filter to filter documents that have fields containing terms with
a specified prefix |
|
query ( array | Elastica\Query\AbstractQuery $query ) : Elastica\Filter\Query |
Returns a Query filter that Wraps any query to be used as a filter. |
|
range ( string $field, array $args ) : Elastica\Filter\Range |
Returns a Range filter object setup to filter documents having the field
greater than the provided values. |
|
regexp ( string $field, string $regexp, array $options = [] ) : Elastica\Filter\Regexp |
Returns a Regexp filter to filter documents based on a regular expression. |
|
script ( string $script ) : Elastica\Filter\Regexp |
Returns a Script filter object that allows to filter based on the return value of a script. |
|
term ( string $field, string $value ) : Elastica\Filter\Term |
Returns a Term filter object that filters documents that have fields containing a term. |
|
terms ( string $field, array $values ) : Elastica\Filter\Terms |
Returns a Terms filter object that filters documents that have fields containing some terms. |
|
type ( string $type ) : Elastica\Filter\Type |
Returns a Type filter object that filters documents matching the provided document/mapping type. |
|