lib/flare/session.rb in flare-1.1.0 vs lib/flare/session.rb in flare-1.2.0

- old
+ new

@@ -23,10 +23,13 @@ execute(*args)[:response][:numFound] end def index(*objects) objects = ensure_searchable(objects) - connection.add(objects.collect(&:to_solr_doc)) + objects.collect(&:to_solr_doc).each do |doc| + connection.update(RSolr::Message::Builder.new.add(doc[:fields], doc[:attributes])) + # connection.add(doc[:fields], doc[:attributes]) + end end def index!(*objects) index(objects) commit