public function testSimplificaMultiplasQueriesGroupby() { $cl = SphinxService::getInstance()->getClient(); $cl->SetMatchMode(SPH_MATCH_EXTENDED2); $cl->SetSortMode(SPH_SORT_RELEVANCE); if (!$this->hasHost()) { return $this->markTestSkipped(); } $cl->addFacetedQuery('perfume', 'produtoIndex', ['categoria', 'fornecedor', 'tamanho']); $results = $cl->RunQueries(); $this->assertMultiQueryResults($results); }
public function getSphinxService() { return SphinxService::getInstance(); }
/** * Configure Sphinx Server Parameters. */ public function setUp() { if ($this->hasHost()) { SphinxService::getInstance()->setParameters($this->getSphinxServerParameters()); } }
public function testAcessoSingletonAoClientComReset() { $client = SphinxService::getInstance()->getFreshClient(); $this->assertTrue($client instanceof SphinxClient); }