Example #1
0
 /**
  * Constructor
  *
  * @param int   $matches
  * @param int   $numFound
  * @param int   $start
  * @param float $maximumScore
  * @param array $documents
  * @param Query $query
  */
 public function __construct($matches, $numFound, $start, $maximumScore, $documents, $query)
 {
     $this->filterMode = $query->getFilterMode();
     $this->filterRatio = $query->getFilterRatio();
     // Use the maximumScore of the first group as maximum for all groups
     if (self::$overallMaximumScore == null) {
         self::$overallMaximumScore = $maximumScore;
     }
     parent::__construct($matches, $numFound, $start, $maximumScore, $documents, $query);
 }