search for: populate_index

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

2006 Sep 26
4
Some documents not found
...w 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.optimize index.close # and finally copy it into place FileUtils.remove_dir(''search-index'') FileUtils.move(''search-index-new'', ''search-index'') ### --- popul...