Class: Sunspot::Rails::Server
- Inherits:
-
Solr::Server
- Object
- Solr::Server
- Sunspot::Rails::Server
- Defined in:
- lib/sunspot/rails/server.rb
Instance Method Summary collapse
-
#bind_address ⇒ Object
Address on which to run Solr.
-
#log_file ⇒ Object
Log file for Solr.
- #log_level ⇒ Object
-
#memory ⇒ Object
Java heap size for Solr.
-
#pid_dir ⇒ Object
Directory in which to store PID files.
-
#pid_file ⇒ Object
Name of the PID file.
-
#port ⇒ Object
Port on which to run Solr.
-
#solr_executable ⇒ Object
Solr start jar.
-
#solr_home ⇒ Object
Directory to use for Solr home.
Instance Method Details
#bind_address ⇒ Object
Address on which to run Solr
36 37 38 |
# File 'lib/sunspot/rails/server.rb', line 36 def bind_address configuration.bind_address end |
#log_file ⇒ Object
Log file for Solr. File is in the rails log/ directory.
54 55 56 |
# File 'lib/sunspot/rails/server.rb', line 54 def log_file File.join(::Rails.root, 'log', "sunspot-solr-#{::Rails.env}.log") end |
#log_level ⇒ Object
47 48 49 |
# File 'lib/sunspot/rails/server.rb', line 47 def log_level configuration.log_level end |
#memory ⇒ Object
Java heap size for Solr
61 62 63 |
# File 'lib/sunspot/rails/server.rb', line 61 def memory configuration.memory end |
#pid_dir ⇒ Object
Directory in which to store PID files
8 9 10 |
# File 'lib/sunspot/rails/server.rb', line 8 def pid_dir configuration.pid_dir || File.join(::Rails.root, 'tmp', 'pids') end |
#pid_file ⇒ Object
Name of the PID file
15 16 17 |
# File 'lib/sunspot/rails/server.rb', line 15 def pid_file "sunspot-solr-#{::Rails.env}.pid" end |
#port ⇒ Object
Port on which to run Solr
43 44 45 |
# File 'lib/sunspot/rails/server.rb', line 43 def port configuration.port end |
#solr_executable ⇒ Object
Solr start jar
29 30 31 |
# File 'lib/sunspot/rails/server.rb', line 29 def solr_executable configuration.solr_executable || super end |
#solr_home ⇒ Object
Directory to use for Solr home.
22 23 24 |
# File 'lib/sunspot/rails/server.rb', line 22 def solr_home File.join(configuration.solr_home) end |