function Drupal_Solr_Query_Interface::add_subquery in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 apachesolr.module \Drupal_Solr_Query_Interface::add_subquery()
- 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 - Add a subquery to the query.
File
- ./
apachesolr.module, line 2010 - 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');