SolrClient::getById

(PECL solr >= 2.2.0) Get Document By Id. Utilizes Solr Realtime Get (RTG). public SolrQueryResponse SolrClient::getById ( string $id ) Get Document By Id. Utilizes Solr Realtime Get (RTG). Parameters: id Document ID Returns: SolrQueryResponse Examples: SolrClient::getById() example

SolrClient::__destruct

(PECL solr >= 0.9.2) Destructor for SolrClient public void SolrClient::__destruct ( void ) Destructor Returns: Destructor for SolrClient See also: SolrClient::__construct() -

SolrClient::deleteByQuery

(PECL solr >= 0.9.2) Deletes all documents matching the given query public SolrUpdateResponse SolrClient::deleteByQuery ( string $query ) Deletes all documents matching the given query. Parameters: query The query Returns: Returns a SolrUpdateResponse on success and throws an exception on failure. Exception: T

SolrClient::deleteByQueries

(PECL solr >= 0.9.2) Removes all documents matching any of the queries public SolrUpdateResponse SolrClient::deleteByQueries ( array $queries ) Removes all documents matching any of the queries Parameters: queries The array of queries. This must be an actual php variable. Returns: Returns a SolrUpdateResponse on success and throws a SolrClient

SolrClient::deleteByIds

(PECL solr >= 0.9.2) Deletes by Ids public SolrUpdateResponse SolrClient::deleteByIds ( array $ids ) Deletes a collection of documents with the specified set of ids. Parameters: ids An array of IDs representing the uniqueKey field declared in the schema for each document to be deleted. This must be an actual php variable. Returns: Returns a So

SolrClient::deleteById

(PECL solr >= 0.9.2) Delete by Id public SolrUpdateResponse SolrClient::deleteById ( string $id ) Deletes the document with the specified ID. Where ID is the value of the uniqueKey field declared in the schema Parameters: id The value of the uniqueKey field declared in the schema Returns: Returns a SolrUpdateResponse on success and throws an e

SolrClient::__construct

(PECL solr >= 0.9.2) Constructor for the SolrClient object public SolrClient::__construct ( array $clientOptions ) Constructor for the SolrClient object Parameters: clientOptions This is an array containing one of the following keys : - secure (Boolean value indicating whether or not to connect in secure mode) - hostname (The hostname for the Solr se

SolrClient::commit

(PECL solr >= 0.9.2) Finalizes all add/deletes made to the index public SolrUpdateResponse SolrClient::commit ([ bool $softCommit = false [, bool $waitSearcher = true [, bool $expungeDeletes = false ]]] ) This method finalizes all add/deletes made to the index. Parameters: softCommit This will refresh the 'view' of the index in a more performant manner, but without

SolrClient::addDocuments

(PECL solr >= 0.9.2) Adds a collection of SolrInputDocument instances to the index public void SolrClient::addDocuments ( array $docs [, bool $overwrite = true [, int $commitWithin = 0 ]] ) Adds a collection of documents to the index. Parameters: docs An array containing the collection of SolrInputDocument instances. This array must be an actual variable.

SolrClient::addDocument

(PECL solr >= 0.9.2) Adds a document to the index public SolrUpdateResponse SolrClient::addDocument ( SolrInputDocument $doc [, bool $overwrite = true [, int $commitWithin = 0 ]] ) This method adds a document to the index. Parameters: doc The SolrInputDocument instance. overwrite Whether to overwrite existing document or not. If FA