_testQueryScores example

'xx "minim am veniam es" OR dolore' => [],
    ];
    $connection = Database::getConnection();
    foreach ($queries as $query => $results) {
      $result = $connection->select('search_index', 'i')
        ->extend(SearchQuery::class)
        ->searchExpression($querystatic::SEARCH_TYPE)
        ->execute();

      $set = $result ? $result->fetchAll() : [];
      $this->_testQueryMatching($query$set$results);
      $this->_testQueryScores($query$set$results);
    }

    // These queries are run against the second index type, SEARCH_TYPE_2.     $queries = [
      // Simple AND queries.       'ipsum' => [],
      'enim' => [],
      'enim minim' => [],
      'dear' => [8],
      'germany' => [11, 12],
    ];
    
Home | Imprint | This part of the site doesn't use cookies.