lib/sunspot/configuration.rb in cb_sunspot-2.0.0.pre.3 vs lib/sunspot/configuration.rb in cb_sunspot-2.0.0.pre3
- old
+ new
@@ -6,10 +6,12 @@
# The URL at which to connect to Solr
# (default: 'http://localhost:8983/solr')
# Sunspot.config.pagination.default_per_page::
# Solr always paginates its results. This sets Sunspot's default result
# count per page if it is not explicitly specified in the query.
+ # Sunspot.config.indexing.default_batch_size::
+ # This sets the batch size for indexing, default is 50
#
module Configuration
class <<self
# Factory method to build configuration instances.
#
@@ -25,9 +27,12 @@
master_solr do
url nil
end
pagination do
default_per_page 30
+ end
+ indexing do
+ default_batch_size 50
end
end
end
# Location for the default solr configuration files,