Newer
Older
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <info@nfq.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\ElasticsearchDSL\Filter;
@trigger_error(
'The HasChildFilter class is deprecated and will be removed in 2.0. Use HasChildQuery instead.',
E_USER_DEPRECATED
);
use ONGR\ElasticsearchDSL\BuilderInterface;
use ONGR\ElasticsearchDSL\DslTypeAwareTrait;
*
* @deprecated Will be removed in 2.0. Use the BoolQuery instead.
public function __construct($type, BuilderInterface $query, array $parameters = [])
}
/**
* {@inheritdoc}
*/
public function toArray()
{
if ($this->getDslType() !== 'query') {
$result[$this->getDslType()] = $result['query'];
unset($result['query']);
}