ËÑË÷ÒýÇæÀ©Õ¹
ÔÚÏßÊֲ᣺ÖÐÎÄ Ó¢ÎÄ
PHPÊÖ²á

Apache Solr


ËÑË÷ÒýÇæÀ©Õ¹
ÔÚÏßÊֲ᣺ÖÐÎÄ Ó¢ÎÄ
PHPÊÖ²á
PHPÊÖ²á - N: Apache Solr

Óû§ÆÀÂÛ:

anon (27-Jan-2012 01: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 (19-Sep-2011 02: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);
    }
}
?>