solrsan 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/solrsan/search.rb +1 -1
- data/lib/solrsan/version.rb +1 -1
- data/lib/tasks/solr.rake +2 -1
- metadata +8 -8
data/lib/solrsan/search.rb
CHANGED
@@ -57,9 +57,9 @@ module Solrsan
|
|
57
57
|
:rows => solr_response['responseHeader']['params']['rows'],
|
58
58
|
:time => solr_response['responseHeader']['QTime'],
|
59
59
|
:status => solr_response['responseHeader']['status'],
|
60
|
+
:sort => solr_response['responseHeader']['sort'],
|
60
61
|
:debug => solr_response['debug']
|
61
62
|
}
|
62
|
-
|
63
63
|
response = {:docs => docs, :metadata => metadata,
|
64
64
|
:facet_counts => parsed_facet_counts, :highlighting => highlighting}
|
65
65
|
response[:stats] = solr_response['stats'] if solr_response['stats']
|
data/lib/solrsan/version.rb
CHANGED
data/lib/tasks/solr.rake
CHANGED
@@ -20,6 +20,7 @@ namespace :solr do
|
|
20
20
|
|
21
21
|
solr_server_dir = "cd #{jetty_path};"
|
22
22
|
start_solr_cmd = "java -jar start.jar"
|
23
|
+
logging_xml = "etc/jetty-logging.xml"
|
23
24
|
jetty_port_opt = "jetty.port=#{jetty_port}"
|
24
25
|
solr_params = "#{jetty_port_opt} -Dsolr.solr.home=#{solr_home} -Dsolr.data.dir=#{solr_data_dir}"
|
25
26
|
|
@@ -31,7 +32,7 @@ namespace :solr do
|
|
31
32
|
|
32
33
|
sleep(1)
|
33
34
|
|
34
|
-
cmd = "#{solr_server_dir} #{start_solr_cmd } #{solr_params} &"
|
35
|
+
cmd = "#{solr_server_dir} #{start_solr_cmd} #{logging_xml} #{solr_params} &"
|
35
36
|
run_system_command(cmd)
|
36
37
|
end
|
37
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solrsan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.29
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-04-
|
12
|
+
date: 2011-04-11 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|
17
|
-
requirement: &
|
17
|
+
requirement: &2152834840 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 1.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2152834840
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: activemodel
|
28
|
-
requirement: &
|
28
|
+
requirement: &2152834340 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 3.0.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2152834340
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: activesupport
|
39
|
-
requirement: &
|
39
|
+
requirement: &2152833880 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 3.0.5
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2152833880
|
48
48
|
description: solrsan is a lightweight wrapper for using Apache Solr within a Ruby
|
49
49
|
application including Rails and Sinatra.
|
50
50
|
email:
|