You are here

function apachesolr_views_query::add_boost_function in Apache Solr Views 6

adds a query boost function to the query

Parameters

string $function: String with placeholders can use one or more of: http://wiki.apache.org/solr/FunctionQuery

array $values: the values to be sprintf'd in place

1 call to apachesolr_views_query::add_boost_function()
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 922

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_function($function, array $values) {
  $this->_boost_functions[] = vsprintf($function, $values);
}