EntityDefinition
$definition,
string
$root,
Context
$context ): ParseResult
{ $result =
new ParseResult();
/** @var ScoreQuery $query */
foreach ($queries as $query) { $parsed =
$this->
parse($query->
getQuery(),
$definition,
$context,
$root);
foreach ($parsed->
getWheres() as $where) { if ($query->
getScoreField()) { $field =
$this->queryHelper->
getFieldAccessor( $query->
getScoreField(),
$definition,
$root,
$context );
$result->
addWhere( sprintf('IF(%s , %s * %s, 0)',
$where,
(string) $this->connection->
quote($query->
getScore()),
$field) );