Jens Kraemer wrote:
> On Fri, Jul 13, 2007 at 02:51:00PM +0200, Mike Mangino wrote:
>> Jens Kraemer wrote:
> 
> [..]
> 
>> 
>> 
>> There were some fields with the text "0". I wonder if it was guessing 
>> the wrong type of index? I cleaned up that data and I'm rebuilding the 
>> index now.
> 
> That sounds like a really good explanation to me.

If only it were true :)

>> Event.find(:all).select {|e| /^[0-9]+$/.match(e.city_for_sort)}
=> []
>> Event.find(:all).select {|e| /^[0-9\.]+$/.match(e.city_for_sort)}
=> []
>> 

but the problem still exists.

According to 
http://ferret.davebalmain.com/trac/browser/trunk/c/src/sort.c, it looks 
like that should fix it.

When I use the Sort and SortField I get the DRB error I reported 
previously because it can't marshall those objects:

Event.find_by_contents("marathon",:sort=>Ferret::Search::arch::SortField.new(:city_for_sort)]),:offset=>400).map(&:city_for_sort)

DRb::DRbConnError: DRb::DRbServerNotFound


Is there an easy fix for this?

> 
> Jens
> 



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

Reply via email to