搜索引擎扩展
在线手册:中文 英文
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);
    }
}
?>