You are here

function Drupal_Solr_Query_Interface::add_subquery in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 apachesolr.module \Drupal_Solr_Query_Interface::add_subquery()
  2. 6.2 apachesolr.module \Drupal_Solr_Query_Interface::add_subquery()

Add a subquery to the query.

Parameters

Drupal_Solr_Query_Interface $query: The query to add to the orginal query - may have keywords or filters.

string $fq_operator: The operator to use within the filter part of the subquery

string $q_operator: The operator to use in joining the subquery to the main keywords. Note - this is unlikely to work with the Dismax handler when the main query is only keywords.

1 method overrides Drupal_Solr_Query_Interface::add_subquery()
Solr_Base_Query::add_subquery in ./Solr_Base_Query.php
A subquery is another instance of a Solr_Base_Query that should be joined to the query. The operator determines whether it will be joined with AND or OR.

File

./apachesolr.module, line 1859
Integration with the Apache Solr search application.

Class

Drupal_Solr_Query_Interface
The interface for all 'query' objects.

Code

function add_subquery(Drupal_Solr_Query_Interface $query, $fq_operator = 'OR', $q_operator = 'AND');