function apachesolr_views_query::add_query_field in Apache Solr Views 6
adds query fields to the query with a specified weight
Parameters
string $field_name: name of the field in the schema
double $boost: the amount of boost applied
1 call to apachesolr_views_query::add_query_field()
- apachesolr_views_query::build in ./
apachesolr_views_query.inc - Build the query object. Load up all avaivable facets so the blocks work.
File
- ./
apachesolr_views_query.inc, line 899
Class
- apachesolr_views_query
- Class for handling a view that gets its data not from the database, but from a Solr server.
Code
function add_query_field($field_name, $boost = 1.0) {
$this->_query_fields[$field_name] = $boost;
}