pankajit / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 1 forks source link

SolrPhpClient does not support multiple (even single!) filtering query #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In \SolrPhpClient\Apache\Solr\Service.php, I found that there is absolutely
NO support on setting up filter (fq=).

Please add support of single/multiple filters support.

Thank you

Original issue reported on code.google.com by alucard...@gmail.com on 17 Dec 2009 at 2:38

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by donovan....@gmail.com on 8 Feb 2010 at 6:24