search for: terms_for

Displaying 1 result from an estimated 1 matches for "terms_for".

2007 Dec 05
2
Term frequency doesn''t decrement after document is deleted.
...et.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...