Exemplo n.º 1
0
 /**
  * This allows internal manipulation of the specific core being queried by this service.
  * There is probably a better way to do this, but this is the least disruptive way to handle this somewhat circular dependency.
  * @return \Wikia\Search\QueryService\Select\AbstractSelect
  */
 protected function setCoreInClient()
 {
     $options = $this->client->getOptions();
     $options['adapteroptions']['path'] = '/solr/' . $this->core;
     $this->client->setOptions($options, true);
     $this->coreSetInClient = true;
     return $this;
 }