SOLRCLIENT(3) 1 SOLRCLIENT(3)
The SolrClient class
INTRODUCTION
Used to send requests to a Solr server. Currently, cloning and serialization of SolrClient instances is not supported.
CLASS SYNOPSIS
SolrClient
final
SolrClient
Constants
o const integer$SolrClient::SEARCH_SERVLET_TYPE1
o const integer$SolrClient::UPDATE_SERVLET_TYPE2
o const integer$SolrClient::THREADS_SERVLET_TYPE4
o const integer$SolrClient::PING_SERVLET_TYPE8
o const integer$SolrClient::TERMS_SERVLET_TYPE16
o const integer$SolrClient::SYSTEM_SERVLET_TYPE32
o const string$SolrClient::DEFAULT_SEARCH_SERVLETselect
o const string$SolrClient::DEFAULT_UPDATE_SERVLETupdate
o const string$SolrClient::DEFAULT_THREADS_SERVLETadmin/threads
o const string$SolrClient::DEFAULT_PING_SERVLETadmin/ping
o const string$SolrClient::DEFAULT_TERMS_SERVLETterms
o const string$SolrClient::DEFAULT_SYSTEM_SERVLETsystem
Methods
o public SolrUpdateResponse SolrClient::addDocument (SolrInputDocument $doc, [bool $overwrite = true], [int $commitWithin])
o public void SolrClient::addDocuments (array $docs, [bool $overwrite = true], [int $commitWithin])
o public SolrUpdateResponse SolrClient::commit ([bool $softCommit = false], [bool $waitSearcher = true], [bool $expungeDeletes = false])
o public SolrClient::__construct (array $clientOptions)
o public SolrUpdateResponse SolrClient::deleteById (string $id)
o public SolrUpdateResponse SolrClient::deleteByIds (array $ids)
o public SolrUpdateResponse SolrClient::deleteByQueries (array $queries)
o public SolrUpdateResponse SolrClient::deleteByQuery (string $query)
o public void SolrClient::__destruct (void )
o public string SolrClient::getDebug (void )
o public array SolrClient::getOptions (void )
o public SolrUpdateResponse SolrClient::optimize ([int $maxSegments = 1], [bool $softCommit = true], [bool $waitSearcher = true])
o public SolrPingResponse SolrClient::ping (void )
o public SolrQueryResponse SolrClient::query (SolrParams $query)
o public SolrUpdateResponse SolrClient::request (string $raw_request)
o public SolrUpdateResponse SolrClient::rollback (void )
o public void SolrClient::setResponseWriter (string $responseWriter)
o public bool SolrClient::setServlet (int $type, string $value)
o public void SolrClient::system (void )
o public void SolrClient::threads (void )
PREDEFINED CONSTANTS
o SolrClient::SEARCH_SERVLET_TYPE -Used when updating the search servlet.
o SolrClient::UPDATE_SERVLET_TYPE -Used when updating the update servlet.
o SolrClient::THREADS_SERVLET_TYPE -Used when updating the threads servlet.
o SolrClient::PING_SERVLET_TYPE -Used when updating the ping servlet.
o SolrClient::TERMS_SERVLET_TYPE -Used when updating the terms servlet.
o SolrClient::SYSTEM_SERVLET_TYPE -Used when retrieving system information from the system servlet.
o SolrClient::DEFAULT_SEARCH_SERVLET -This is the intial value for the search servlet.
o SolrClient::DEFAULT_UPDATE_SERVLET -This is the intial value for the update servlet.
o SolrClient::DEFAULT_THREADS_SERVLET -This is the intial value for the threads servlet.
o SolrClient::DEFAULT_PING_SERVLET -This is the intial value for the ping servlet.
o SolrClient::DEFAULT_TERMS_SERVLET -This is the intial value for the terms servlet used for the TermsComponent
o SolrClient::DEFAULT_SYSTEM_SERVLET -This is the intial value for the system servlet used to obtain Solr Server information
PHP Documentation Group SOLRCLIENT(3)