You are here

function Solr_Base_Query::get_query_basic in Apache Solr Search 5

Same name and namespace in other branches
  1. 5.2 Solr_Base_Query.php \Solr_Base_Query::get_query_basic()
  2. 6 Solr_Base_Query.php \Solr_Base_Query::get_query_basic()
  3. 6.2 Solr_Base_Query.php \Solr_Base_Query::get_query_basic()

A function to get just the keyword components of the query, omitting any field:value portions.

File

./Solr_Base_Query.php, line 186

Class

Solr_Base_Query

Code

function get_query_basic() {
  $nonames = array_filter($this->_fields, create_function('$a', 'return empty($a[\'#name\']);'));
  $result = array();
  foreach ($nonames as $pos => $field) {
    $result[] = $field['#value'];
  }
  return implode(' ', $result);
}