You are here

public function SearchApiSolrDocument::setFieldUpdate in Search API Solr 7

Sets the field's 'update' attribute for a document field.

Parameters

string $key: The name of the field.

string|false $update: One of the allowed update values ('add', 'set', 'inc').

File

includes/document.inc, line 302

Class

SearchApiSolrDocument
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

public function setFieldUpdate($key, $update) {
  $this->fieldUpdates[$key] = $update;
}