#33 open

Unable to use custom query objects with remote server configuration.

Reported by Jens | February 13th, 2010 @ 12:37 AM

I'm trying to construct ferret's custom query object (e.g. Ferret::Search::BooleanQuery) and pass it to find_by_contents method in configuration with remote DRb indexer.

It constantly causes DRbServerNotFound exceptions.

I have figured out, that it tries to marshal Ferret::Search::BooleanQuery to server and fails, because this class doesn't support #marshal_dump method.

The workaround is to use string representation of query, but it would be great if acts_as_ferret extended those query classes to support marshaling.

Another solution is to span a separate server on client that would allow passing references to those objects to DRb server. This scenario is better in terms that it is not needed to extend each and every class instances of which can be passed to DRb indexing server. On the other hand, it could require additional setup (maybe a separate port for every Rails app instance).

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket