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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10509ebef416e503416eb56c1467f5f76e431ac65cfae2aad5146a0be16a5ad8
4
- data.tar.gz: 55521fb090044b3e4272b55c5f98200812e383eddcaa588ef88e3db098866bee
3
+ metadata.gz: b33978e8d1e9f3b72dd019aba0061c0aa3954ce0751dba3e9160fd3bfa06baf3
4
+ data.tar.gz: e32736f80614a2fdf417c2d5028f5ada09d1e864c7d742e9a918f172a1bad2ac
5
5
  SHA512:
6
- metadata.gz: a3c76b9a0f9f24798a57ce5c29d8f24c67310a3ae35e4dcf3b0cee0751c2da1e34cc639b9ce286ecbad67960f786c45d52a16e6831b79e2375d7275ee6f9667a
7
- data.tar.gz: ff97ef55cd9dac6c77c0ebd0ca41b9accff470667148972c974cd5d4a3456a112ae20069d9d8e81f4524fd73565c18baa44d32bcd76d50c93c65131ea5d90ad9
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
@@ -1,3 +1,3 @@
1
1
  module Solr
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
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
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-05 00:00:00.000000000 Z
13
+ date: 2019-04-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable