[Ferret-talk] Sorting issues, can anyone help me?

Jens Kraemer
2007-04-02T10:27:51Z

On Sun, Apr 01, 2007 at 07:21:16PM +0200, Manoel Lemos
wrote:
> Jens, so this is the correct way to define the fields:
>
> :rank_sort => {:index => :untokenized_omit_norms, :term_vector =>
:no}
>
> since rank_sort is like this:
>
>   def rank_sort
>     return self.rank_links.to_i if !self.rank_links.blank? and
self.rank_links > 0
>     return 999999999
>   end

yeah, looks ok.

Jens

--
Jens Kr?mer
webit! Gesellschaft f?r neue Medien mbH
Schnorrstra?e 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
kraemer at webit.de | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa