function Solr_Base_Query::get_query_basic in Apache Solr Search 5
Same name and namespace in other branches
- 5.2 Solr_Base_Query.php \Solr_Base_Query::get_query_basic()
- 6 Solr_Base_Query.php \Solr_Base_Query::get_query_basic()
- 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
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);
}