On Fri, Sep 11, 2009 at 2:35 AM, Paul Rosen <p...@performantsoftware.com>wrote:
> Hi again, > > I've mostly gotten the multicore working except for one detail. > > (I'm using solr 1.3 and solr-ruby 0.0.6 in a rails project.) > > I've done a few queries and I appear to be able to get hits from either > core. (yeah!) > > I'm forming my request like this: > > req = Solr::Request::Standard.new( > :start => start, > :rows => max, > :sort => sort_param, > :query => query, > :filter_queries => filter_queries, > :field_list => @field_list, > :facets => {:fields => @facet_fields, :mincount => 1, :missing => true, > :limit => -1}, > :highlighting => {:field_list => ['text'], :fragment_size => 600}, > :shards => @cores) > > If I leave ":shards => @cores" out, then the response includes: > > 'facet_counts' => { > 'facet_dates' => {}, > 'facet_queries' => {}, > 'facet_fields' => { 'myfacet' => [ etc...], etc... } > > which is what I expect. > > If I add the ":shards => @cores" back in (so that I'm doing the exact > request above), I get: > > 'facet_counts' => { > 'facet_dates' => {}, > 'facet_queries' => {}, > 'facet_fields' => {} > > so I've lost my facet information. > > Why would it correctly find my documents, but not report the facet info? > I'm not a ruby guy but the response format in both the cases is exactly the same so I don't think there is any problem with the ruby client parsing. Can you check the Solr logs to see if there were any exceptions when you sent the shards parameter? -- Regards, Shalin Shekhar Mangar.