erichummel-sunspot 1.2.1b → 1.2.1f
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sunspot/server.rb +2 -3
- data/lib/sunspot/version.rb +1 -1
- metadata +1 -1
data/lib/sunspot/server.rb
CHANGED
@@ -16,7 +16,7 @@ module Sunspot
|
|
16
16
|
|
17
17
|
LOG_LEVELS = Set['SEVERE', 'WARNING', 'INFO', 'CONFIG', 'FINE', 'FINER', 'FINEST']
|
18
18
|
|
19
|
-
attr_accessor :min_memory, :max_memory, :port, :solr_data_dir, :solr_home, :log_file
|
19
|
+
attr_accessor :min_memory, :max_memory, :port, :solr_data_dir, :solr_home, :log_file, :multicore
|
20
20
|
attr_writer :pid_dir, :pid_file, :log_level, :solr_data_dir, :solr_home, :solr_jar
|
21
21
|
|
22
22
|
#
|
@@ -66,12 +66,11 @@ module Sunspot
|
|
66
66
|
command << "-Xms#{min_memory}" if min_memory
|
67
67
|
command << "-Xmx#{max_memory}" if max_memory
|
68
68
|
command << "-Djetty.port=#{port}" if port
|
69
|
-
command << "-Dsolr.data.dir=#{solr_data_dir}" if solr_data_dir
|
69
|
+
command << "-Dsolr.data.dir=#{solr_data_dir}" if solr_data_dir && !multicore
|
70
70
|
command << "-Dsolr.solr.home=#{solr_home}" if solr_home
|
71
71
|
command << "-Djava.util.logging.config.file=#{logging_config_path}" if logging_config_path
|
72
72
|
command << '-jar' << File.basename(solr_jar)
|
73
73
|
FileUtils.cd(File.dirname(solr_jar)) do
|
74
|
-
puts Escape.shell_command(command)
|
75
74
|
exec(Escape.shell_command(command))
|
76
75
|
end
|
77
76
|
end
|
data/lib/sunspot/version.rb
CHANGED