module Sunspot::Configuration
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.
Sunspot.config
.indexing.default_batch_size-
This sets the batch size for indexing, default is 50
Public Class Methods
solr_default_configuration_location()
click to toggle source
Location for the default solr configuration files, required for bootstrapping a new solr installation
Returns¶ ↑
- String
-
Directory with default solr config files
# File lib/sunspot/configuration.rb, line 50 def solr_default_configuration_location File.join( File.dirname(__FILE__), '../../solr/solr/conf' ) end