solrb 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solr/query/request/facet.rb +5 -2
- data/lib/solr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b33978e8d1e9f3b72dd019aba0061c0aa3954ce0751dba3e9160fd3bfa06baf3
|
4
|
+
data.tar.gz: e32736f80614a2fdf417c2d5028f5ada09d1e864c7d742e9a918f172a1bad2ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d7dbda2d2943d0ae2ef9298c5f91178a269e012a26d6895274e241f1313ad843d9cecb39913f823dd13bd57dc6cd887aa8cdd102ba304f479bf82932a30fbc
|
7
|
+
data.tar.gz: 4d2df569275c95015768131dae59e32a159cffe9b13861892235e7089c994db9fd0216e7ce05492717da01eb7024188ddabd6d8c28f2f3bcb5e7fc3d32c53c2d
|
@@ -17,7 +17,8 @@ module Solr
|
|
17
17
|
:subfacets,
|
18
18
|
:gap,
|
19
19
|
:lower_bound,
|
20
|
-
:upper_bound
|
20
|
+
:upper_bound,
|
21
|
+
:domain
|
21
22
|
|
22
23
|
def initialize(field:, type:, name: nil, value: nil, filters: [], subfacets: [], options: {})
|
23
24
|
if options[:limit].nil? && type == TERMS_TYPE
|
@@ -38,6 +39,7 @@ module Solr
|
|
38
39
|
@gap = options[:gap]
|
39
40
|
@lower_bound = options[:lower_bound]
|
40
41
|
@upper_bound = options[:upper_bound]
|
42
|
+
@domain = options[:domain]
|
41
43
|
end
|
42
44
|
|
43
45
|
def to_solr_h
|
@@ -58,7 +60,8 @@ module Solr
|
|
58
60
|
facet: subfacets.map(&:to_solr_h).reduce(&:merge),
|
59
61
|
gap: gap,
|
60
62
|
start: lower_bound,
|
61
|
-
end: upper_bound
|
63
|
+
end: upper_bound,
|
64
|
+
domain: domain
|
62
65
|
}.compact
|
63
66
|
}
|
64
67
|
end
|
data/lib/solr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adriano Luz
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-04-
|
13
|
+
date: 2019-04-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|