Commit 24d1b52db07c0f2ca0f39b6084f65bfc445d1ccb

Authored by Andrew Kane
1 parent 6528ee4a

Fixed MongoDB import - closes #392

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/index.rb
... ... @@ -189,7 +189,7 @@ module Searchkick
189 189 scope.all.each do |item|
190 190 items << item if item.should_index?
191 191 if items.length == batch_size
192   - index.import items
  192 + import items
193 193 items = []
194 194 end
195 195 end
... ...