public function buildScoreQueries( SearchPattern
$term,
EntityDefinition
$definition,
string
$root,
Context
$context,
float
$multiplier = 1.0
): array
{ static $counter = 0;
++
$counter;
$fields =
$this->
getQueryFields($definition,
$context);
$queries =
[];
foreach ($fields as $field) { /** @var SearchRanking|null $flag */
$flag =
$field->
getFlag(SearchRanking::
class);
$ranking =
$multiplier;
if ($flag) { $ranking =
$flag->
getRanking() *
$multiplier;
}