Files
Phraseanet/lib/Alchemy/Phrasea/SearchEngine/Elastic/AST/QuotedTextNode.php
Mathieu Darse 0bbd35dc02 AST revamp
2014-11-06 19:06:34 +01:00

24 lines
482 B
PHP

<?php
namespace Alchemy\Phrasea\SearchEngine\Elastic\AST;
class QuotedTextNode extends TextNode
{
public function getQuery($fields = ['_all'])
{
return array(
'multi_match' => array(
'type' => 'phrase',
'fields' => $fields,
'query' => $this->text,
// 'operator' => 'and'
)
);
}
public function isFullTextOnly()
{
return true;
}
}