Interacting with the SolrPower_Api class - pantheon-systems/solr-power GitHub Wiki

Interacting with the SolrPower_Api class

Running a Query

To run a direct Solr query use the query method of the SolrPower_Api class. This class is a singleton and should be called with the get_instance method.

$results = SolrPower_Api::get_instance()->query( $qry, $offset, $count, $fq, $sortby, $order );