Interacting with the SolrPower_Api class - pantheon-systems/solr-power GitHub Wiki
SolrPower_Api
class
Interacting with the
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 );