Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public function testGetDocuments()
 {
     $this->assertEquals($this->items, $this->group->getDocuments());
 }