You are here

function DrupalSolrQueryInterface::addFilterSubQuery in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.interface.inc \DrupalSolrQueryInterface::addFilterSubQuery()
  2. 6.3 apachesolr.interface.inc \DrupalSolrQueryInterface::addFilterSubQuery()

Adds a subquery to the query.

Parameters

SolrFilterSubQuery $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.

Return value

DrupalSolrQueryInterface The called object.

File

./apachesolr.interface.inc, line 116

Class

DrupalSolrQueryInterface
The interface for all 'query' objects.

Code

function addFilterSubQuery(SolrFilterSubQuery $query);