Closed GoogleCodeExporter closed 9 years ago
// example usage for fq parameter and ANY others
$solr = new Apache_Solr_Service();
// maps to q
$query = "your query here";
// maps to start
$start = 0;
// maps to rows
$limit = 10;
// all your other parameters directly mapped
// for multivalued fields use arrays - order will matter
// for correllation of values on the server side
$options = array(
'fq' => "your filter query here",
'facet' => "true"
'facet.field' => array(
'facetField1',
'facetField2'
)
);
$results = $solr->search($query, $start, $limit, $options);
print_r($results->response);
Will add this to the FAQ
Original comment by donovan....@gmail.com
on 17 Dec 2009 at 2:56
Added new FAQ section: http://code.google.com/p/solr-php-client/wiki/FAQ?
ts=1261019466&updated=FAQ#How_Can_I_Use_Additional_Parameters_(like_fq,_facet,_e
tc)
Original comment by donovan....@gmail.com
on 17 Dec 2009 at 3:11
Should not this issue be closed, as it is "not a bug"?
Original comment by cominv...@gmail.com
on 8 Feb 2010 at 6:19
Original comment by donovan....@gmail.com
on 8 Feb 2010 at 6:24
Original issue reported on code.google.com by
alucard...@gmail.com
on 17 Dec 2009 at 2:38