mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
23 lines
515 B
PHP
23 lines
515 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\SearchEngine\Elastic\AST;
|
|
|
|
use Alchemy\Phrasea\SearchEngine\Elastic\Search\QueryContext;
|
|
use Alchemy\Phrasea\SearchEngine\Elastic\Thesaurus\Term;
|
|
|
|
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>', Term::dump($this));
|
|
}
|
|
}
|