To edit pages or tickets please login with username/password: aaf/aaf

Ticket #205 (assigned defect)

Opened 7 months ago

Last modified 2 months ago

Unable to use custom query objects with remote server configuration.

Reported by: aaf Assigned to: jk (accepted)
Priority: major Milestone: later
Component: 0plugin Version:
Keywords: drb marshal query Cc:

Description

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).

Change History

08/03/08 11:10:36 changed by jk

  • status changed from new to assigned.
  • milestone set to later.

the client side server is no option imho, much better would be proper marshaling support in ferret's query classes.

To edit pages or tickets please login with username/password: aaf/aaf