Class: Sunspot::Padrino::Server
- Inherits:
-
Solr::Server
- Object
- Solr::Server
- Sunspot::Padrino::Server
- Defined in:
- lib/sunspot/padrino/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
-
#max_memory ⇒ Object
Maximum Java heap size for Solr.
-
#min_memory ⇒ Object
Minimum 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_data_dir ⇒ Object
Directory to store lucene index data files.
-
#solr_home ⇒ Object
Directory to use for Solr home.
-
#solr_jar ⇒ Object
Solr start jar.
Instance Method Details
#bind_address ⇒ Object
Address on which to run Solr
47 48 49 |
# File 'lib/sunspot/padrino/server.rb', line 47 def bind_address configuration.bind_address end |
#log_file ⇒ Object
Log file for Solr. File is in the padrino log/ directory.
65 66 67 |
# File 'lib/sunspot/padrino/server.rb', line 65 def log_file File.join(::Padrino.root, 'log', "sunspot-solr-#{::Padrino.env}.log") end |
#log_level ⇒ Object
58 59 60 |
# File 'lib/sunspot/padrino/server.rb', line 58 def log_level configuration.log_level end |
#max_memory ⇒ Object
Maximum Java heap size for Solr
79 80 81 |
# File 'lib/sunspot/padrino/server.rb', line 79 def max_memory configuration.max_memory end |
#min_memory ⇒ Object
Minimum Java heap size for Solr
72 73 74 |
# File 'lib/sunspot/padrino/server.rb', line 72 def min_memory configuration.min_memory end |
#pid_dir ⇒ Object
Directory in which to store PID files
8 9 10 |
# File 'lib/sunspot/padrino/server.rb', line 8 def pid_dir configuration.pid_dir || File.join(::Padrino.root, 'tmp', 'pids') end |
#pid_file ⇒ Object
Name of the PID file
15 16 17 |
# File 'lib/sunspot/padrino/server.rb', line 15 def pid_file "sunspot-solr-#{::Padrino.env}.pid" end |
#port ⇒ Object
Port on which to run Solr
54 55 56 |
# File 'lib/sunspot/padrino/server.rb', line 54 def port configuration.port end |
#solr_data_dir ⇒ Object
Directory to store lucene index data files
Returns
- String
-
data_path
26 27 28 |
# File 'lib/sunspot/padrino/server.rb', line 26 def solr_data_dir configuration.data_path end |
#solr_home ⇒ Object
Directory to use for Solr home.
33 34 35 |
# File 'lib/sunspot/padrino/server.rb', line 33 def solr_home File.join(configuration.solr_home) end |
#solr_jar ⇒ Object
Solr start jar
40 41 42 |
# File 'lib/sunspot/padrino/server.rb', line 40 def solr_jar configuration.solr_jar || super end |