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

Version Path
outoftime-sunspot-0.7.0 lib/sunspot/configuration.rb
outoftime-sunspot-0.7.1 lib/sunspot/configuration.rb
outoftime-sunspot-0.7.2 lib/sunspot/configuration.rb
outoftime-sunspot-0.7.3 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.0 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.1 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.2 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.3 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.4 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.5 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.8 lib/sunspot/configuration.rb
outoftime-sunspot-0.8.9 lib/sunspot/configuration.rb
pallan-sunspot-0.8.3 lib/sunspot/configuration.rb