/**
  * @param QueryDefinition $queryDefinition
  */
 public function modifyQuery(QueryDefinition $queryDefinition)
 {
     $queryDefinition->setFilterQuery($this->setRandomScore($queryDefinition->getFilterQuery()));
 }
 /**
  * @param QueryDefinition $queryDefinition
  */
 public function modifyQuery(QueryDefinition $queryDefinition)
 {
     $queryDefinition->getQuery()->addSort(['created' => ['order' => 'desc']]);
 }
 /**
  * @param QueryDefinition $queryDefinition
  */
 public function modifyQuery(QueryDefinition $queryDefinition)
 {
     $queryDefinition->getQuery()->addSort([$this->field => ['order' => $this->order]]);
 }