sunspot_solr 2.3.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2a856e829e140add4d64d8f10f8b40ae732e9bba176b7f3f427972b03f2624c
4
- data.tar.gz: d91ef647b0ab64cdd089d18f1b0880f3a24142279c87ab798125b0968fa83bcf
3
+ metadata.gz: a54c5d32df311f332d0c7f0c108429e880d60a7181c50b29d1eed5d678598a43
4
+ data.tar.gz: 1d24c0f41f77b5e813c12e8c4358f309ed24190134dd6b7c702061915031c052
5
5
  SHA512:
6
- metadata.gz: e0d0ff747cc185cfef54972d9a289220ae072f0e06d71e534278bbf54de84959e249d2ca0bbd55c4fe9ce7ab3cf861b1ed165c493df3d0e5812022fa5f7106c0
7
- data.tar.gz: b5ae47de1573bb297fe3908b2bf80acb48023a8f73e04106a4f531d65d6d98f9e9c4f283cd0bad0f21e4fe4fca37898db204a0214c054f9b1f03a1bc7769b5cd
6
+ metadata.gz: da7e2ff2a4c98b9baa445dadfa2574559a12d745260d549ca6801f5fcb70f32e9d87ec8684e5a9400f10aa722f1a573186d2b251d0184597d66a512e3340acac
7
+ data.tar.gz: 1c7053118bdfce36b53aed2df860cba9472f20f37d32673ab17fc6ca4a1490136f778d7e9725581c713cd6fea2b915802e8f7c01645915cdbc2d798031c565c2
@@ -95,6 +95,7 @@ module Sunspot
95
95
  command << "-p" << "#{port}" if port
96
96
  command << "-h" << "#{bind_address}" if bind_address
97
97
  command << "-s" << "#{solr_home}" if solr_home
98
+ command << "-Dlog4j.configuration=file:#{logging_config.path}" if logging_config
98
99
 
99
100
  exec_in_solr_executable_directory(command)
100
101
  end
@@ -194,18 +195,26 @@ module Sunspot
194
195
 
195
196
  private
196
197
 
197
- def logging_config_path
198
- return @logging_config_path if defined?(@logging_config_path)
199
- @logging_config_path =
198
+ def logging_config
199
+ return @logging_config if defined?(@logging_config)
200
+ @logging_config =
200
201
  if log_file
201
- logging_config = Tempfile.new('logging.properties')
202
- logging_config.puts("handlers = java.util.logging.FileHandler")
203
- logging_config.puts("java.util.logging.FileHandler.level = #{log_level.to_s.upcase}")
204
- logging_config.puts("java.util.logging.FileHandler.pattern = #{log_file}")
205
- logging_config.puts("java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter")
202
+ logging_config = Tempfile.new('log4j.properties')
203
+ logging_config.puts("log4j.rootLogger=#{log_level.to_s.upcase}, file, CONSOLE")
204
+ logging_config.puts("log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender")
205
+ logging_config.puts("log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout")
206
+ logging_config.puts("log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n")
207
+ logging_config.puts("log4j.appender.file=org.apache.log4j.RollingFileAppender")
208
+ logging_config.puts("log4j.appender.file.MaxFileSize=4MB")
209
+ logging_config.puts("log4j.appender.file.MaxBackupIndex=9")
210
+ logging_config.puts("log4j.appender.file.File=#{log_file}")
211
+ logging_config.puts("log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout")
212
+ logging_config.puts("log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n")
213
+ logging_config.puts("log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF")
214
+
206
215
  logging_config.flush
207
216
  logging_config.close
208
- logging_config.path
217
+ logging_config
209
218
  end
210
219
  end
211
220
  end
data/solr/bin/solr.in.cmd CHANGED
@@ -36,7 +36,6 @@ set GC_TUNE=-XX:NewRatio=3 ^
36
36
  -XX:TargetSurvivorRatio=90 ^
37
37
  -XX:MaxTenuringThreshold=8 ^
38
38
  -XX:+UseConcMarkSweepGC ^
39
- -XX:+UseParNewGC ^
40
39
  -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 ^
41
40
  -XX:+CMSScavengeBeforeRemark ^
42
41
  -XX:PretenureSizeThreshold=64m ^
@@ -97,4 +96,4 @@ REM otherwise keep them commented and the above values will automatically be set
97
96
  REM set SOLR_SSL_CLIENT_KEY_STORE=
98
97
  REM set SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
99
98
  REM setSOLR_SSL_CLIENT_TRUST_STORE=
100
- REM setSOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
99
+ REM setSOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
data/solr/bin/solr.in.sh CHANGED
@@ -38,7 +38,6 @@ GC_TUNE="-XX:NewRatio=3 \
38
38
  -XX:TargetSurvivorRatio=90 \
39
39
  -XX:MaxTenuringThreshold=8 \
40
40
  -XX:+UseConcMarkSweepGC \
41
- -XX:+UseParNewGC \
42
41
  -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
43
42
  -XX:+CMSScavengeBeforeRemark \
44
43
  -XX:PretenureSizeThreshold=64m \
data/sunspot_solr.gemspec CHANGED
@@ -22,8 +22,6 @@ Gem::Specification.new do |s|
22
22
  distribution is well suited to development and testing.
23
23
  TEXT
24
24
 
25
- s.rubyforge_project = "sunspot"
26
-
27
25
  s.files = `git ls-files`.split("\n")
28
26
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
29
27
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot_solr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Brown
@@ -23,10 +23,10 @@ authors:
23
23
  - Sam Granieri
24
24
  - Nick Zadrozny
25
25
  - Jason Ronallo
26
- autorequire:
26
+ autorequire:
27
27
  bindir: bin
28
28
  cert_chain: []
29
- date: 2018-04-08 00:00:00.000000000 Z
29
+ date: 2022-05-30 00:00:00.000000000 Z
30
30
  dependencies:
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rake
@@ -565,7 +565,7 @@ homepage: https://github.com/sunspot/sunspot/tree/master/sunspot_solr
565
565
  licenses:
566
566
  - MIT
567
567
  metadata: {}
568
- post_install_message:
568
+ post_install_message:
569
569
  rdoc_options: []
570
570
  require_paths:
571
571
  - lib
@@ -580,9 +580,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
580
580
  - !ruby/object:Gem::Version
581
581
  version: '0'
582
582
  requirements: []
583
- rubyforge_project: sunspot
584
- rubygems_version: 2.7.6
585
- signing_key:
583
+ rubygems_version: 3.1.4
584
+ signing_key:
586
585
  specification_version: 4
587
586
  summary: Bundled Solr distribution for Sunspot
588
587
  test_files: