search for: index_document

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

2006 Sep 26
4
Some documents not found
...where productId in (?)", ids]).each {|a| sym = a.productId.to_sym attr_cache[sym] = [] if !attr_cache[sym] attr_cache[sym] << a } # now populate the index with data puts "indexing #{products.size} products..." products.each {|prod| index << prod.index_document(:keywords => kwcache, :attribute_values => attr_cache) } end ### --- updater --- index = Ferret::Index::Index.new(:path => ''search-index'', :analyzer => Ferret::Analysis::AsciiStandardAnalyzer.new ) index.delete(:id, product.id) index << product.index_docume...