Forum: Ferret LazyDoc over DRb

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Julio Cesar O. (Guest)
on 2007-01-10 05:08
(Received via mailing list)
Hey all,

I'm distributing requests to a small farm of Ferret servers across the
network using DRb. In a specific part of my program, I'm trying to
find an entry across servers, and for that, I'm using


as the return value of the function in question. This returns a
Ferret::Index::LazyDoc, which is all fine and dandy, except that for
some reason DRb doesn't like it and won't return the "hash" to the
remote client.

I tried using index['example_doc_id'].load.to_a, and the array gets
returned just fine. For the record, yes, I've tried
index['example_doc_id'].load.to_hash, but what you get from that is
again a Ferret::Index::LazyDoc, and not a Hash.

I suppose I could manually copy the elements from LazyDoc to a new
Hash, but that's hacky. Before I resort to it, does anyone have any

Thanks in advance.
This topic is locked and can not be replied to.