Re: multicore and ruby

2009-09-09 Thread Matt Mitchell
Yep same thing in rsolr and just use the :shards param. It'll return whatever solr returns. Matt On Wed, Sep 9, 2009 at 4:17 PM, Paul Rosen wrote: > Hi Erik, > > Yes, I've been doing that in my tests, but I also have the case of wanting > to do a search over all the cores using the shards syntax

Re: multicore and ruby

2009-09-09 Thread Erik Hatcher
The Connection is not for parameters, merely the base URL to the Solr server (or core, which is effectively a Solr "server"). As of solr-ruby 0.0.6, the shards parameter is supported for the Solr::Request::Standard and Dismax request objects, so you'd simply specify :shards=>"" for thos

Re: multicore and ruby

2009-09-09 Thread Paul Rosen
Hi Erik, Yes, I've been doing that in my tests, but I also have the case of wanting to do a search over all the cores using the shards syntax. I was thinking that the following wouldn't work: solr = Solr::Connection.new('http://localhost:8983/solr/core0/select?shards=localhost:8983/solr/cor

Re: multicore and ruby

2009-09-09 Thread Erik Hatcher
With solr-ruby, simply put the core name in the URL of the Solr::Connection... solr = Solr::Connection.new('http://localhost:8983/solr/core_name') Erik On Sep 9, 2009, at 6:38 PM, Paul Rosen wrote: Hi all, I'd like to start experimenting with multicore in a ruby on rails app.

Re: multicore and ruby

2009-09-09 Thread Paul Rosen
Hi Matt, What kinds of things were you hoping to find when looking for multicore support in either solr-ruby or rsolr? I have a couple of uses for it: 1) Search and merge the results from multiple indexes: http://localhost:8983/solr/core0/select?shards=localhost:8983/solr/core0,localhost:898

Re: multicore and ruby

2009-09-09 Thread Matt Mitchell
Hey Paul, In rsolr, you could use the #request method to set a request handler path: solr.request('/core1/select', :q=>'*:*') Alternatively, (rsolr and solr-ruby) you could probably handle this by creating a new instance of a connection object per-core, and then have some kind of factory to retur

Re: multicore and ruby

2009-09-09 Thread Greg Gershman
by hand as well. Greg From: Paul Rosen To: solr-user@lucene.apache.org Sent: Wednesday, September 9, 2009 12:38:56 PM Subject: multicore and ruby Hi all, I'd like to start experimenting with multicore in a ruby on rails app. Right now, the app is using the solr

multicore and ruby

2009-09-09 Thread Paul Rosen
Hi all, I'd like to start experimenting with multicore in a ruby on rails app. Right now, the app is using the solr-ruby-rails-0.0.5 to communicate with solr and it doesn't appear to have direct support for multicore and I didn't have any luck googling around for it. We aren't necessarily we