Sphinx\Tests\SphinxClientTest::provideQuery PHP Метод

provideQuery() публичный Метод

public provideQuery ( )
    public function provideQuery()
    {
        return array(array('a', $this->getSphinxClient()->setMatchMode(SphinxClient::SPH_MATCH_ALL), array('fields' => array('field1', 'field2'), 'attrs' => array('attr1' => 1, 'lat' => 5, 'long' => 5, 'stringattr' => 7), 'matches' => array('1', '2', '3', '4'), 'total' => 4, 'total_found' => 4, 'words' => array('a' => array('docs' => 4, 'hits' => 4)))), array('bb', $this->getSphinxClient(), array('matches' => array('4', '5', '1', '2', '3'))), array('ccc dddd', $this->getSphinxClient()->setMatchMode(SphinxClient::SPH_MATCH_PHRASE)->setSortMode(SphinxClient::SPH_SORT_ATTR_ASC, 'attr1'), array('matches' => array('3', '5', '4'))), array('bb ccc', $this->getSphinxClient()->setMatchMode(SphinxClient::SPH_MATCH_BOOLEAN)->setSortMode(SphinxClient::SPH_SORT_ATTR_DESC, 'attr1'), array('matches' => array('4', '2', '5', '3'))), array('bb ccc', $this->getSphinxClient()->setSortMode(SphinxClient::SPH_SORT_EXTENDED, '@relevance DESC, attr1 ASC'), array('matches' => array('5', '4', '3', '2', '1'))), array('bb', $this->getSphinxClient()->setLimits(0, 2), array('matches' => array('4', '5'))), array('@field1 bb @field2 ccc', $this->getSphinxClient()->setMatchMode(SphinxClient::SPH_MATCH_EXTENDED)->setLimits(0, 20), array('matches' => array('4', '5'))), array('bb ccc', $this->getSphinxClient()->setWeights(array(10, 2)), array('matches' => array('4', '5', '2', '3', '1'))), array('bb ccc', $this->getSphinxClient()->setIndexWeights(array('sphinxtest' => 2)), array('matches' => array('4', '5', '2', '3', '1'))), array('bb ccc', $this->getSphinxClient()->setFieldWeights(array('field1' => 10, 'field2' => 2)), array('matches' => array('4', '5', '2', '3', '1'))), array('xx', $this->getSphinxClient()->setIdRange(0, '18446744073709551615'), array('matches' => array('9223372036854775807'))), array('bb' . $this->utf16to8('2122'), $this->getSphinxClient()->setIdRange(0, 0xffffffff), array('matches' => array('4', '5', '1', '2', '3'), 'words' => array('bb' => array('docs' => 5, 'hits' => 8)))), array($keyword = $this->utf16to8('65e5672c8a9e'), $this->getSphinxClient()->setIdRange(0, 0xffffffff), array('matches' => array('6'), 'words' => array($keyword => array('docs' => 1, 'hits' => 1)))));
    }
SphinxClientTest