search for: vandelay

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

2006 Sep 26
4
Some documents not found
...quot;) # open it... index = Ferret::Index::Index.new(:path => ''search-index-new'', :analyzer => Ferret::Analysis::AsciiStandardAnalyzer.new ) # get the products... start = Time.new puts ''loading product data'' offset = 0 batch_size = 100 loop do prods = Vandelay::Product.find(:all, :limit => batch_size, :offset => offset, :include => [:descriptions, :categories, {:skus => :supplieritems}]) offset += batch_size break if prods.size == 0 populate_index(index, prods) end # optimize it... puts ''optimizing index...'' index.o...