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
hasParent
Cake\ElasticSearch\FilterBuilder::hasParent PHP Method
FilterBuilder Class Documentation
Datei anzeigen
Open project: cakephp/elastic-search
hasParent()
public
method
Filters by child documents having parent documents matching the query
See also:
http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-filter.html
public
hasParent
(
string
|
Query | Elastica\Filter\AbstractFilter
$query
,
string
$type
) :
Elastica\Filter\HasParent
$query
string
|
Elastica\Query | Elastica\Filter\AbstractFilter
The filtering conditions.
$type
string
The parent type to query against.
return
Elastica\Filter\HasParent
public function hasParent($query, $type) { return new Filter\HasParent($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