mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
22 lines
452 B
PHP
22 lines
452 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\SearchEngine\Elastic\AST;
|
|
|
|
use Alchemy\Phrasea\SearchEngine\Elastic\Search\QueryContext;
|
|
|
|
class TermNode extends AbstractTermNode
|
|
{
|
|
public function buildQuery(QueryContext $context)
|
|
{
|
|
$query = array();
|
|
$query['bool']['should'] = $this->buildConceptQueries($context);
|
|
|
|
return $query;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return sprintf('<term:%s>', $this->text);
|
|
}
|
|
}
|