You are here

function apachesolr_views_query::add_boost_query in Apache Solr Views 6

adds a query boost for a specific field/value combo

Parameters

string $field_name: name of field in the schema

string $field_value: the value of the field to boost

double $boost_value: the amount of boost to apply

1 call to apachesolr_views_query::add_boost_query()
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 938

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_boost_query($field_name, $field_value, $boost_value) {
  $this->_boost_queries[$field_name][$field_value] = $boost_value;
}