You are here

function Solr_Base_Query::add_field in Apache Solr Search 5

File

./Solr_Base_Query.php, line 112

Class

Solr_Base_Query

Code

function add_field($field, $value) {

  // microtime guarantees that added fields come at the end of the query,
  // in order.
  $this->_fields[microtime()] = array(
    '#name' => $field,
    '#value' => trim($value),
  );
  $this
    ->rebuild_query();
}