mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
21 lines
425 B
PHP
21 lines
425 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\SearchEngine\Elastic\AST;
|
|
|
|
class AndExpression extends BinaryOperator
|
|
{
|
|
protected $operator = 'AND';
|
|
|
|
public function getQuery($fields = ['_all'])
|
|
{
|
|
$left = $this->left->getQuery($fields);
|
|
$right = $this->right->getQuery($fields);
|
|
|
|
return array(
|
|
'bool' => array(
|
|
'must' => array($left, $right)
|
|
)
|
|
);
|
|
}
|
|
}
|