searchkick-hooopo 2.3.4 → 2.3.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
  SHA1:
3
- metadata.gz: b0a583527f94e9f2ff5bd516fa14954d2929454a
4
- data.tar.gz: e87d1df59be8d7d971d62e3e678743c36bdd15f4
3
+ metadata.gz: da228a9ec2e9aad9e7fccbaaa341d69b936208a0
4
+ data.tar.gz: 7d4c3c532146b255873d686cb4ad424fbbc6d6cd
5
5
  SHA512:
6
- metadata.gz: 04ced7e3dbbce7f762ae215dea74e2eab5365f09edac3adcf6f4231c1fde5f94964ce1eb1c6498758cc45dbdfc5cca51e49afa7d5a6862e3ca9fb3d045f0349f
7
- data.tar.gz: fae7c443309dd3d6d499b70d4f80870faf789b0197e548d0224f514917dda9a5b073c8e03e53d203175a4edaba9379568ba1019947f80ce1761cad301c5dbcb9
6
+ metadata.gz: 3b2db1fa5e15ef170e5264ec183ee44e03e810de2952e22139401ee5422832dd31cc4c94ed8a085dda95991e5b40eb213c6c8d4e73cfe87840edaa52f831bc93
7
+ data.tar.gz: e74f8f9cc222dd18ff60e0223c150b24689208cd39c21066f98dd689526c47907317a72ead2e2e27d7b71fd73dca6e5e8c2fc211549284e47d385649a6a9339b
@@ -19,7 +19,7 @@ module Searchkick
19
19
  :boost_by, :boost_by_distance, :boost_where, :conversions, :conversions_term, :debug, :emoji, :exclude, :execute, :explain,
20
20
  :fields, :highlight, :includes, :index_name, :indices_boost, :limit, :load,
21
21
  :match, :misspellings, :offset, :operator, :order, :padding, :page, :per_page, :profile,
22
- :request_params, :routing, :select, :similar, :smart_aggs, :suggest, :track, :type, :where]
22
+ :request_params, :routing, :select, :similar, :smart_aggs, :suggest, :track, :type, :where, :analyzers]
23
23
  raise ArgumentError, "unknown keywords: #{unknown_keywords.join(", ")}" if unknown_keywords.any?
24
24
 
25
25
  term = term.to_s
@@ -306,6 +306,9 @@ module Searchkick
306
306
  shared_options.merge(analyzer: Searchkick.searchkick_search_analyzer),
307
307
  shared_options.merge(analyzer: Searchkick.searchkick_search2_analyzer)
308
308
  ]
309
+ qs.concat options.fetch(:analyzers, []).map { |analyzer|
310
+ shared_options.merge(analyzer: analyzer)
311
+ }
309
312
  exclude_analyzer = Searchkick.searchkick_search2_analyzer
310
313
  elsif field.end_with?(".exact")
311
314
  f = field.split(".")[0..-2].join(".")
@@ -1,3 +1,3 @@
1
1
  module Searchkick
2
- VERSION = "2.3.4"
2
+ VERSION = "2.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchkick-hooopo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-04 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel