Module: Sunspot::Configuration
- Defined in:
- lib/sunspot/configuration.rb
Overview
The Sunspot::Configuration module provides a factory method for Sunspot configuration objects. Available properties are:
- Sunspot.config.solr.url
-
The URL at which to connect to Solr (default: ‘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.
Class Method Summary collapse
-
.build ⇒ Object
Factory method to build configuration instances.
Class Method Details
.build ⇒ Object
Factory method to build configuration instances.
Returns
- LightConfig::Configuration
-
new configuration instance with defaults
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/sunspot/configuration.rb', line 20 def build #:nodoc: LightConfig.build do solr do url 'http://localhost:8983/solr' end pagination do default_per_page 30 end end end |