You are here

function apachesolr_views_query::add_subquery in Apache Solr Views 6

add a subquery to the current query

File

./apachesolr_views_query.inc, line 809

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_subquery(Drupal_Solr_Query_Interface $query, $fq_operator = 'OR', $q_operator = 'AND') {
  $this->_subqueries[$query->id] = array(
    'query' => $query,
    'fq_op' => $fq_operator,
    'q_op' => $q_operator,
  );
}