On 3/21/07, Thomas Senf <[EMAIL PROTECTED]> wrote: > I would like to thank all the people who have contributed to this very > fine project. Great work! > > I've encountered some strange results while examining the term frequency > of one of my indexed documents. The indexed terms seem to vary for the > very same document depending on the presence or absence of completely > unrelated operations in the code, so the resulting term frequency > changes, too. > > I repeatedly call 'index_reader.term_docs_for' for the only document > I've indexed in the snippet below, but depending on the presence of the > statement > 'dummy_count = 0' or some formatting code for the output the resulting > term frequencies change from correct answers to wrong ones. Sometimes > terms are not > found at all. > > For better examination I add a complete snippet which produce this > behavior on my system (the text is taken from > http://de.wikipedia.org/wiki/Entgelt). I'm > working with ferret Version 0.11.3, C extensions compiled with VC6.0 > (but the 0.10.9-mswin32 binaries from the ferret gem show the same > behavior), and ruby > version 1.8.5. > > Has anybody an explanation for that or do I misuse something? > <snip>Test Code</snip>
Hi Thomas, Firstly, well done compiling Ferret on Windows and thanks for posting this. The reason I haven't yet released a win32 gem is that I'm still trying to work out the String#dump issue which is wreaking havoc when people try and use Ferret with Rails on Windows. I suspect this issue of yours is somehow related. I'll let you know as soon as I find a solution. Cheers, Dave -- Dave Balmain http://www.davebalmain.com/ _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

