SolrClient::setServlet

(PECL solr >= 0.9.2) Changes the specified servlet type to a new value public bool SolrClient::setServlet ( int $type, string $value ) Changes the specified servlet type to a new value Parameters: type One of the following : - SolrClient::SEARCH_SERVLET_TYPE - SolrClient::UPDATE_SERVLET_TYPE - SolrClient::THREADS_SERVLET_TYPE - SolrClient::PING_SERVLET_TYPE - SolrC

SolrClient::setResponseWriter

(PECL solr >= 0.9.11) Sets the response writer used to prepare the response from Solr public void SolrClient::setResponseWriter ( string $responseWriter ) Sets the response writer used to prepare the response from Solr Parameters: responseWriter One of the following: json phps xml Returns: No value is returned.

SolrClient::rollback

(PECL solr >= 0.9.2) Rollbacks all add/deletes made to the index since the last commit public SolrUpdateResponse SolrClient::rollback ( void ) Rollbacks all add/deletes made to the index since the last commit. It neither calls any event listeners nor creates a new searcher. Returns: Returns a SolrUpdateResponse on success or throws a SolrClientException on failure.

SolrClient::request

(PECL solr >= 0.9.2) Sends a raw update request public SolrUpdateResponse SolrClient::request ( string $raw_request ) Sends a raw XML update request to the server Parameters: raw_request An XML string with the raw request to the server. Returns: Returns a SolrUpdateResponse on success. Throws an exception on failure. Ex

SolrClient::query

(PECL solr >= 0.9.2) Sends a query to the server public SolrQueryResponse SolrClient::query ( SolrParams $query ) Sends a query to the server. Parameters: query A SolrParams object. It is recommended to use SolrQuery for advanced queries. Returns: Returns a SolrQueryResponse object on success and throws an exception on failure.

SolrClient::ping

(PECL solr >= 0.9.2) Checks if Solr server is still up public SolrPingResponse SolrClient::ping ( void ) Checks if the Solr server is still alive. Sends a HEAD request to the Apache Solr server. Returns: Returns a SolrPingResponse object on success and throws an exception on failure. Exception: Throws SolrClientException if the client had failed, or there was a

SolrClient::optimize

(PECL solr >= 0.9.2) Defragments the index public SolrUpdateResponse SolrClient::optimize ([ int $maxSegments = 1 [, bool $softCommit = true [, bool $waitSearcher = true ]]] ) Defragments the index for faster search performance. Parameters: maxSegments Optimizes down to at most this number of segments. Since Solr 1.3 softCommit Th

SolrClient::getOptions

(PECL solr >= 0.9.6) Returns the client options set internally public array SolrClient::getOptions ( void ) Returns the client options set internally. Very useful for debugging. The values returned are readonly and can only be set when the object is instantiated. Returns: Returns an array containing all the options for the SolrClient object set internally.

SolrClient::getDebug

(PECL solr >= 0.9.7) Returns the debug data for the last connection attempt public string SolrClient::getDebug ( void ) Returns the debug data for the last connection attempt Returns: Returns a string on success and null if there is nothing to return.

SolrClient::getByIds

(PECL solr >= 2.2.0) Get Documents by their Ids. Utilizes Solr Realtime Get (RTG). public SolrQueryResponse SolrClient::getByIds ( array $ids ) Get Documents by their Ids. Utilizes Solr Realtime Get (RTG). Parameters: ids Document ids Returns: SolrQueryResponse Examples: SolrClient