You are here

function Solr_Base_Query::has_field in Apache Solr Search 5

File

./Solr_Base_Query.php, line 145

Class

Solr_Base_Query

Code

function has_field($name, $value) {
  foreach ($this->_fields as $pos => $values) {
    if (!empty($values['#name']) && !empty($values['#value']) && $values['#name'] == $name && $values['#value'] == $value) {
      return TRUE;
    }
  }
  return FALSE;
}