Class: Sunspot::Padrino::Server

Inherits:
Solr::Server
  • Object
show all
Defined in:
lib/sunspot/padrino/server.rb

Instance Method Summary collapse

Instance Method Details

#bind_addressObject

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_fileObject

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_levelObject



58
59
60
# File 'lib/sunspot/padrino/server.rb', line 58

def log_level
  configuration.log_level
end

#max_memoryObject

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_memoryObject

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_dirObject

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_fileObject

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

#portObject

Port on which to run Solr



54
55
56
# File 'lib/sunspot/padrino/server.rb', line 54

def port
  configuration.port
end

#solr_data_dirObject

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_homeObject

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_jarObject

Solr start jar



40
41
42
# File 'lib/sunspot/padrino/server.rb', line 40

def solr_jar
  configuration.solr_jar || super
end