The SolrClient class
Introdução
Used to send requests to a Solr server. Currently, cloning and serialization of SolrClient instances is not supported.
Sinopse da classe
SolrClient
final
SolrClient
{
/* Constants */
/* Properties */
/* Methods */
public SolrUpdateResponse addDocument
( SolrInputDocument &$doc
[, bool $allowDups
[, int $commitWithin
]] )
public SolrUpdateResponse optimize
([ int $maxSegments
[, bool $waitFlush
[, bool $waitSearcher
]]] )
}Propriedades
- _hashtable_index
-
Used to track each SolrClient instance internally.
Constantes pré-definidas
SolrClient Node Types
- SolrClient::SEARCH_SERVLET_TYPE
-
Used when updating the search servlet.
- SolrClient::UPDATE_SERVLET_TYPE
-
Used when updating the update servlet.
- SolrClient::THREADS_SERVLET_TYPE
-
Used when updating the threads servlet.
- SolrClient::PING_SERVLET_TYPE
-
Used when updating the ping servlet.
- SolrClient::TERMS_SERVLET_TYPE
-
Used when updating the terms servlet.
- SolrClient::DEFAULT_SEARCH_SERVLET
-
This is the intial value for the search servlet.
- SolrClient::DEFAULT_UPDATE_SERVLET
-
This is the intial value for the update servlet.
- SolrClient::DEFAULT_THREADS_SERVLET
-
This is the intial value for the threads servlet.
- SolrClient::DEFAULT_PING_SERVLET
-
This is the intial value for the ping servlet.
- SolrClient::DEFAULT_TERMS_SERVLET
-
This is the intial value for the terms servlet used for the TermsComponent
Índice
- SolrClient::addDocument — Adds a document to the index.
- SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to the index.
- SolrClient::commit — Finalizes all add/deletes made to the index.
- SolrClient::__construct — Constructor for the SolrClient object
- SolrClient::deleteById — Delete by Id
- SolrClient::deleteByIds — Deletes by Ids
- SolrClient::deleteByQueries — Removes all documents matching any of the queries
- SolrClient::deleteByQuery — Deletes all documents matching the given query
- SolrClient::__destruct — Destructor for SolrClient
- SolrClient::getDebug — Returns the debug data for the last connection attempt
- SolrClient::getOptions — Returns the client options set internally.
- SolrClient::optimize — Defragments the index
- SolrClient::ping — Checks if Solr server is still up
- SolrClient::query — Sends a query to the server.
- SolrClient::request — Sends a raw update request
- SolrClient::rollback — Rollbacks all add/deletes made to the index since the last commit.
- SolrClient::setServlet — Changes the specified servlet type to a new value
- SolrClient::threads — Checks the threads status
SolrClient
There are no user contributed notes for this page.
