downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Introduction> <udm_set_agent_param
[edit] Last updated: Fri, 10 Feb 2012

view this page in

Apache Solr



add a note add a note User Contributed Notes Solr
anon 27-Jan-2012 05:44
I think the problem the previous commenter was having is that 'fq' is mnemonic for 'filter query', not 'facet query' as they seemed to believe.  Using SolrQuery::addFilterQuery ought to work just fine.
mixwise at gmail dot com 18-Sep-2011 06:19
solr_get_version(): 1.0.1
solr:3.3.0

I had problems trying to pass facet queries(fq not facet.query) using this extension.

So I made a work around by extending the SolrQuery class and adding a new method for fq.
<?php
class SolrQuery2 extends SolrQuery{
    public function
addFQ($facetQuery){
       
$this->addParam('fq', $facetQuery);
    }
}
?>

 
show source | credits | sitemap | contact | advertising | mirror sites