Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sunspot_rails/lib/sunspot/rails/searchable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def solr_reindex(options = {})
# Post.index(:include => :author)
#
def solr_index(opts={})
options = { :batch_size => 500, :batch_commit => true, :include => self.sunspot_options[:include], :first_id => 0}.merge(opts)
options = { :batch_size => 500, :batch_commit => true, :include => self.sunspot_options[:include], :first_id => '0'}.merge(opts)
unless options[:batch_size]
Sunspot.index!(all(:include => options[:include]))
else
Expand Down Expand Up @@ -283,7 +283,7 @@ def solr_index_updated_after(created_updated_after, opts={})
options = {
:batch_commit => true,
:include => [],
:first_id => 0
:first_id => '0'
}.merge(opts)
unless options[:batch_size]
Sunspot.index!(all(
Expand Down