SolrInputDocument::fieldExists

(PECL solr >= 0.9.2) Checks if a field exists public bool SolrInputDocument::fieldExists ( string $fieldName ) Checks if a field exists Parameters: fieldName Name of the field. Returns: Returns TRUE if the field was found and FALSE if it was not found.

SolrInputDocument::__destruct

(PECL solr >= 0.9.2) Destructor public void SolrInputDocument::__destruct ( void ) Destructor Returns: None.

SolrInputDocument::deleteField

(PECL solr >= 0.9.2) Removes a field from the document public bool SolrInputDocument::deleteField ( string $fieldName ) Removes a field from the document. Parameters: fieldName The name of the field. Returns: Returns TRUE on success or FALSE on failure.

SolrInputDocument::__construct

(PECL solr >= 0.9.2) Constructor public SolrInputDocument::__construct ( void ) Constructor. Returns: None.

SolrInputDocument::__clone

(PECL solr >= 0.9.2) Creates a copy of a SolrDocument public void SolrInputDocument::__clone ( void ) Should not be called directly. It is used to create a deep copy of a SolrInputDocument. Returns: Creates a new SolrInputDocument instance.

SolrInputDocument::clear

(PECL solr >= 0.9.2) Resets the input document public bool SolrInputDocument::clear ( void ) Resets the document by dropping all the fields and resets the document boost to zero. Returns: Returns TRUE on success or FALSE on failure.

SolrInputDocument::addField

(PECL solr >= 0.9.2) Adds a field to the document public bool SolrInputDocument::addField ( string $fieldName, string $fieldValue [, float $fieldBoostValue = 0.0 ] ) For multi-value fields, if a valid boost value is specified, the specified value will be multiplied by the current boost value for this field. Parameters: fieldName The name of the field

SolrUtils::queryPhrase

(PECL solr >= 0.9.2) Prepares a phrase from an unescaped lucene string public static string SolrUtils::queryPhrase ( string $str ) Prepares a phrase from an unescaped lucene string. Parameters: str The lucene phrase. Returns: Returns the phrase contained in double quotes.

SolrUtils::getSolrVersion

(PECL solr >= 0.9.2) Returns the current version of the Solr extension public static string SolrUtils::getSolrVersion ( void ) Returns the current Solr version. Returns: The current version of the Apache Solr extension.

SolrUtils::escapeQueryChars

(PECL solr >= 0.9.2) Escapes a lucene query string public static string SolrUtils::escapeQueryChars ( string $str ) Lucene supports escaping special characters that are part of the query syntax. The current list special characters are: + - && || ! ( ) { } [ ] ^ " ~ * ? : \ / These characters are part of the query syntax and must be escaped Parameters: str Thi