Hey all,
The frequency count returned by my ferret reader doesn’t decrement
after I remove a documents with those terms. Using the example from
http://ferret.davebalmain.com/api/classes/Ferret/Index/TermEnum.html
the frequency increments after a document is added but stays the same
after a document is deleted.
index.reader.terms(:tags).each do |term, freq|
“#{term} appears #{freq} times”
end
If I iterate through each document matched by terms_for I get the
correct frequency but I assume at a higher performance cost.
index.reader.terms(:tags).each do |term|
freq = index.reader.terms_for(:tags, term).each{}
“#{term} appears #{freq} times”
end
I’m wondering if I’m plain just doing something wrong. I’m running the
gem version 0.11.6 (ruby) on i686-darwin9.1.0 and I can provide a unit
test if it’d help.
Cheers,
Shane.