public function ApacheSolrDocument::setMultiValue in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 Apache_Solr_Document.php \ApacheSolrDocument::setMultiValue()
- 7 Apache_Solr_Document.php \ApacheSolrDocument::setMultiValue()
Handle the array manipulation for a multi-valued field
Parameters
string $key:
string $value:
mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false:
Deprecated
Use addField(...) instead
File
- ./
Apache_Solr_Document.php, line 191
Class
- ApacheSolrDocument
- Holds Key / Value pairs that represent a Solr Document along with any associated boost values. Field values can be accessed by direct dereferencing such as: <code> ... $document->title = 'Something'; echo…
Code
public function setMultiValue($key, $value, $boost = FALSE) {
$this
->addField($key, $value, $boost);
}