Commit 384be2e254b0c48e1caefadfc8f4154d1c27b1f9

Authored by Erich Kist
Committed by Andrew Kane
1 parent 105c88b7

Fix the total docs call after import logic move (#1170)

This fix the call after move on commit fd936e493ec46909171a849d9f4ed68130ede7ec.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/bulk_indexer.rb
... ... @@ -24,7 +24,7 @@ module Searchkick
24 24 # to get the max _id without scripting since it's a string
25 25  
26 26 # TODO use primary key and prefix with table name
27   - relation = relation.where("id > ?", total_docs)
  27 + relation = relation.where("id > ?", index.total_docs)
28 28 end
29 29  
30 30 relation = relation.select("id").except(:includes, :preload) if async
... ...