Coder Social home page Coder Social logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
// 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 [email protected] on 17 Dec 2009 at 2:56

  • Changed state: Started

from solr-php-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
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 [email protected] on 17 Dec 2009 at 3:11

from solr-php-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Should not this issue be closed, as it is "not a bug"?

Original comment by [email protected] on 8 Feb 2010 at 6:19

from solr-php-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024

Original comment by [email protected] on 8 Feb 2010 at 6:24

  • Changed state: Done

from solr-php-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.