On Wed, Mar 14, 2007 at 05:43:35PM +0100, neongrau __ wrote:
> Jens Kraemer wrote:
> > I just committed this, so could you please try if current trunk fixes
> > this for you?
> 
> hi!
> 
> thanks for your fast response.
> yes it looks like everything gets indexed now.
> 
> but now somehow find_id_by_contents doesnt work as before, has it 
> changed?
> 
> i was using this to get all id's as an array:
> .find_id_by_contents(search, {:limit => :all}).collect {|x| x[:id]}

if used without a block, find_id_by_contents returns a 2-element-array
where the first element is the number of total hits and the last element
is the results array, so 

.find_id_by_contents(search, {:limit => :all}).last.collect {|x| x[:id]}

should work.

I'm not sure when this behaviour has been introduced, but I guess it's
been a while ago...

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
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to