John Leach
2008-09-10 13:43:20 UTC
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.
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
http://johnleach.co.uk