Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Cake
ElasticSearch
FilterBuilder
hasChild
Cake\ElasticSearch\FilterBuilder::hasChild PHP Method
FilterBuilder Class Documentation
Datei anzeigen
Open project: cakephp/elastic-search
hasChild()
public
method
Accepts a query and the child type to run against, and results in parent documents that have child docs matching the query.
See also:
http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html
public
hasChild
(
string
|
Query | Elastica\Filter\AbstractFilter
$query
,
string
$type
) :
Elastica\Filter\HasChild
$query
string
|
Elastica\Query | Elastica\Filter\AbstractFilter
The filtering conditions.
$type
string
The child type to query against.
return
Elastica\Filter\HasChild
public function hasChild($query, $type) { return new Filter\HasChild($query, $type); }
FilterBuilder
__call
_parseFilter
and_
between
bool
exists
geoBoundingBox
geoDistance
geoDistanceRange
geoHashCell
geoPolygon
geoShape
geoShapeIndex
gt
gte
hasChild
hasParent
ids
indices
limit
lt
lte
matchAll
missing
nested
not
or_
parse
prefix
query
range
regexp
script
term
terms
type