Hi Brandon,

transmitting objects from Ferret's API across the DRb connection is
always a bit tricky. If these don't serialize correctly, DRb only
transmits a stub and then tries to talk back to the original object
via a DRb connection from the server to your web server process, which
results in the message you see.

Sort and SortFields should work, but I'm not sure if I introducted the
one or the other after the 0.4.1 release. Imho, Sort objects can simply
be replaced by an array holding the SortFields.

For the RangeQueries and other query objects that fail the way you
describe, please try using FQL instead to see if this fixes the problem.

cheers,
Jens

On Fri, Sep 07, 2007 at 08:18:52PM +0200, Brandon Kelly wrote:
> I'm trying to use the Ferret DRB server to avoid concurrency issues when
> using multiple mongrels.  I can successfully add and edit data on my
> index via the DRB server, however, when I search the index, I get the
> following error:
> 
> DRb::DRbConnError (DRb::DRbServerNotFound):
>     /usr/lib/ruby/1.8/drb/drb.rb:1647:in `current_server'
[..]
> -----------------
> 
> I'm running the following environment:
> 
> Linux version 2.6.16.29-xen_3.0.3.0
> mongrel (1.0.1)
> mongrel_cluster (1.0.2, 0.2.1)
> ferret (0.11.4)
> acts_as_ferret stable plugin (as of 9/7/2007)
> 
> 
> I have no problem running this application on my local development
> environment... and I had no problems running in this hosting environment
> before I started using Ferret DRB.
> 
> Here are some example sorts and/or filters I'm using in my searches (not
> sure if this matters to Ferret DRB or not):
> 
> Ferret::Search::SortField.new(:article_published_date, :reverse => true)
> 
> Ferret::Search::Sort.new([Ferret::Search::SortField::SCORE, date_sort])
> 
> Ferret::Search::RangeQuery.new(:article_published_date, :>= =>
> UserSystem::APP_DEFAULTS[:days_for_new].days.ago.utc.to_i.to_s, :<= =>
> Time.now.utc.to_i.to_s)
> 
> Ferret::Search::Sort.new([Ferret::Search::SortField.new(:article_published_date,
> :reverse => true)])
> 
> 
> Any ideas why my searches wouldn't be working?
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> Ferret-talk@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ferret-talk
> 

-- 
Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to