function Drupal_Solr_Query_Interface::add_subquery in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 apachesolr.module \Drupal_Solr_Query_Interface::add_subquery()
- 6 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: (optional) The operator to use within the filter part of the subquery. Defaults to 'OR'
string $q_operator: (optional) 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. Defaults to 'AND'
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 2506 - 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');