Forum: Ferret SortField via Drb

28c237c0c414b644082bfcde4e42b309?d=identicon&s=25 John Leach (Guest)
on 2008-09-10 15:44
(Received via mailing list)
Hi,

we need to use an SortField object so we can specify the column type:

sf_title = SortField.new(:title, :type => :string)

Except SortField objects don't appear to be marshalled properly across
DRb.

Luckily you can specify the sort field and reverse option as free form
text to the query, but you apparently can't specify the type.

Possible solutions:

 * Maybe you can specify the type. Does anyone know how?

 * Maybe SortField can be made to marshall. Does anyone know how, or
where best to start adding this if necessary?

 * Maybe we can add this support to Ferret.  Doesn't anyone have any
clues where to start? We don't mind doing some C coding :)

Thanks in advance!

John.
--
http://johnleach.co.uk
C9dd93aa135988cabf9183d3210665ca?d=identicon&s=25 Jens Krämer (Guest)
on 2008-09-10 16:14
(Received via mailing list)
Hi!

Do you use aaf? In this case it should work (tm), since aaf has
support for this built in, see

http://projects.jkraemer.net/acts_as_ferret/browse...

If not, feel free to take the marshalling code to monkey patch your
Ferret - no C coding necessary ;)

Cheers,
Jens

On 10.09.2008, at 15:43, John Leach wrote:

> text to the query, but you apparently can't specify the type.
>
>
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49351467660 | Telefax +493514676666
kraemer@webit.de | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold
28c237c0c414b644082bfcde4e42b309?d=identicon&s=25 John Leach (Guest)
on 2008-09-10 17:36
(Received via mailing list)
On Wed, 2008-09-10 at 16:07 +0200, Jens Krämer wrote:
> Hi!
>
> Do you use aaf? In this case it should work (tm), since aaf has
> support for this built in


We certainly do use aaf.  I'll take a look why this isn't working for
us.

Thanks Jens, you're awesome as always :)

John.

--
http://johnleach.co.uk
This topic is locked and can not be replied to.