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