Sha256: 4fd615026cf3c740b77bc1009bf38eac6a10abc0e59c1768b9740229c80d159c
Contents?: true
Size: 925 Bytes
Versions: 13
Compression:
Stored size: 925 Bytes
Contents
module Sunspot # 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: '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. # module Configuration class <<self # Factory method to build configuration instances. # # ==== Returns # # LightConfig::Configuration:: new configuration instance with defaults # def build #:nodoc: LightConfig.build do solr do url 'http://localhost:8983/solr' end pagination do default_per_page 30 end end end end end end
Version data entries
13 entries across 13 versions & 2 rubygems