search for: set_fast

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

Did you mean: set_dst
2007 Mar 01
2
FerretHash
...lue] reader.delete docnum reader.commit else fail end searcher.close reader.close open_writer result end def []=(key,value) delete key @writer << {:key=>key, :value=>value} @writer.commit return value end def set_fast!(key, value) @writer << {:key=>key, :value=>value} end def sync @writer.commit end def keys reader=Ferret::Index::IndexReader.new(@name) result=reader.terms(:key).extend(Enumerable).map{|term,freq| freq==1 or fail term } reader.c...