SolrDocument::clear
(PECL solr >= 0.9.2)
SolrDocument::clear — Drops all the fields in the document
Description
public bool SolrDocument::clear
( void
)
Resets the current object. Discards all the fields and resets the document boost to zero.
Parameters
This function has no parameters.
Return Values
Returns TRUE
on success or FALSE
on failure.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с поисковыми системами
- Apache Solr
- Функция SolrDocument::addField() - Adds a field to the document
- Функция SolrDocument::clear() - Drops all the fields in the document
- Функция SolrDocument::__clone() - Creates a copy of a SolrDocument object
- Функция SolrDocument::__construct() - Constructor
- Функция SolrDocument::current() - Retrieves the current field
- Функция SolrDocument::deleteField() - Removes a field from the document
- Функция SolrDocument::__destruct() - Destructor
- Функция SolrDocument::fieldExists() - Checks if a field exists in the document
- Функция SolrDocument::__get() - Access the field as a property
- Функция SolrDocument::getField() - Retrieves a field by name
- Функция SolrDocument::getFieldCount() - Returns the number of fields in this document
- Функция SolrDocument::getFieldNames() - Returns an array of fields names in the document
- Функция SolrDocument::getInputDocument() - Returns a SolrInputDocument equivalent of the object
- Функция SolrDocument::__isset() - Checks if a field exists
- Функция SolrDocument::key() - Retrieves the current key
- Функция SolrDocument::merge() - Merges source to the current SolrDocument
- Функция SolrDocument::next() - Moves the internal pointer to the next field
- Функция SolrDocument::offsetExists() - Checks if a particular field exists
- Функция SolrDocument::offsetGet() - Retrieves a field
- Функция SolrDocument::offsetSet() - Adds a field to the document
- Функция SolrDocument::offsetUnset() - Removes a field
- Функция SolrDocument::reset() - This is an alias to SolrDocument::clear()
- Функция SolrDocument::rewind() - Resets the internal pointer to the beginning
- Функция SolrDocument::serialize() - Used for custom serialization
- Функция SolrDocument::__set() - Adds another field to the document
- Функция SolrDocument::sort() - Sorts the fields in the document
- Функция SolrDocument::toArray() - Returns an array representation of the document
- Функция SolrDocument::unserialize() - Custom serialization of SolrDocument objects
- Функция SolrDocument::__unset() - Removes a field from the document
- Функция SolrDocument::valid() - Checks if the current position internally is still valid
Коментарии
404 Not Found