Would there be any way for it to still be tokenized when defining it as

'school_sort' => { :index => :untokenized }

in the model (a_a_f)? I just saw the other thread on sorting strangeness 
and it seems like I am having similar problems. I will try that solution 
and get back.

Thanks again for a great library.

- Winton

David Balmain wrote:
> On 10/2/06, Winton <[EMAIL PROTECTED]> wrote:
>> Any ideas?
>>
>> - Winton
>>
> 
> Hi Winton,
> 
> Sorry for the slow reply. Is it possible that one of your schools
> begins with a number? numbers appear in the database before letters so
> when Ferret detects the fields type it may think the field is an
> integer field. For example, imagine you are indexing tv shows. "24"
> would probably be the first entry in the index so when you try to sort
> by that field it will think it is an integer. So you need to specify
> that the field is in fact a string field.
> 
> :sort => Ferret::Search::SortField.new(:school_sort, :type => :string,
> :reverse => false)
> 
> I hope that helps, otherwise it really looks to me like the field is
> tokenized. I'd check that again just in case.
> 
> Cheers,
> Dave
> 
> PS: love the site design


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to