On 8/28/06, Jens Kraemer <[EMAIL PROTECTED]> wrote: > On Sat, Aug 26, 2006 at 04:12:57PM +0200, Florent Solt wrote: > > This script (http://pastie.caboo.se/10371) give this result : > > > > "1" > > "0" > > "0" > > "0" > > > > Why the other thread does not have the same result ? > > Maybe, it's not the correct way to use the index in a multi threaded > > environement but I don't know how to do. > > This should work, imho. I even tried to synchronize access to the index > like that: > > guard = Mutex.new > [..] > and in the thread's block: > guard.synchronize do > result = index.search('id:42') > p result.total_hits > end > > but the output stayed the same.
This was a bug that has been fixed in the current working copy. The fix will be released in version 0.10.2. Cheers, Dave _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

