meilisearch 0.12.0 → 0.13.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: 17248185a6d2ba10e2e5fac61b6d9d07a0cac218a2accc4cd5b3bd130517f837
4
- data.tar.gz: dd20f35451242677ec05ac52d95cbc14915dea6676562ef23c58a58655db24ad
3
+ metadata.gz: 92d1afdaa529593e643fa0e297bf3b8d56671c2163937fb5f30e1dd0193f2725
4
+ data.tar.gz: f7849b8a8a9343a706c05b74e23c1959c330bde18bb8366ba04adf6efa9577b7
5
5
  SHA512:
6
- metadata.gz: f0c0c7a6726257c62e14108f33df551cd5ec3d7c5f4b6f8eb3fa975988da3915d7b3167e0074c3e21134f49d1a40d84a55e4145ae7b4ffac45cd1daa8954e00d
7
- data.tar.gz: 3cb711d0577b92fe428b90ec16d2cbc7fb593aba63f014206c17a88bca2ba4de0fdd58b51e2b014640ae7118996142b9edc4c4d4d00250fc8a6893df117e3527
6
+ metadata.gz: 0f887ad9f507f236fe54a6f56df028c4d33e3e730d1d56c886e774b1cf055b6aa153fe2ec51a3ad5f775309027deaa9c496de2da8e6bfd988efffa046097f346
7
+ data.tar.gz: 433afbfd38336ef77cd8bb6538dd7ebf3a100d14b8f436236b907c968eaa7875372863bf90d32272404af01395e8968f50f65aed8a7674e0ad9f132798b48d58
@@ -73,14 +73,6 @@ module MeiliSearch
73
73
  http_get '/version'
74
74
  end
75
75
 
76
- def sysinfo
77
- http_get '/sys-info'
78
- end
79
-
80
- def pretty_sysinfo
81
- http_get '/sys-info/pretty'
82
- end
83
-
84
76
  def stats
85
77
  http_get '/stats'
86
78
  end
@@ -21,7 +21,7 @@ module MeiliSearch
21
21
  @http_message = http_message
22
22
  @ms_message ||= 'MeiliSearch API has not returned any error message'
23
23
  @ms_link ||= '<no documentation link found>'
24
- @message = "#{http_code} #{http_message} - #{@ms_message.capitalize}. See #{ms_link}."
24
+ @message = "#{http_code} #{http_message} - #{@ms_message}. See #{ms_link}."
25
25
  super(details)
26
26
  end
27
27
 
@@ -81,16 +81,8 @@ module MeiliSearch
81
81
  ### SEARCH
82
82
 
83
83
  def search(query, options = {})
84
- parsed_options = options.transform_keys(&:to_sym).map do |k, v|
85
- if [:facetFilters, :facetsDistribution].include?(k)
86
- [k, v.inspect]
87
- elsif v.is_a?(Array)
88
- [k, v.join(',')]
89
- else
90
- [k, v]
91
- end
92
- end.to_h
93
- http_get "/indexes/#{@uid}/search", { q: query }.merge(parsed_options)
84
+ parsed_options = options.compact
85
+ http_post "/indexes/#{@uid}/search", { q: query }.merge(parsed_options)
94
86
  end
95
87
 
96
88
  ### UPDATES
@@ -244,17 +236,6 @@ module MeiliSearch
244
236
  http_delete "/indexes/#{@uid}/settings/displayed-attributes"
245
237
  end
246
238
 
247
- ### SETTINGS - ACCEPT NEW FIELS VALUE
248
-
249
- def accept_new_fields
250
- http_get "/indexes/#{@uid}/settings/accept-new-fields"
251
- end
252
- alias get_accept_new_fields accept_new_fields
253
-
254
- def update_accept_new_fields(accept_new_fields)
255
- http_post "/indexes/#{@uid}/settings/accept-new-fields", accept_new_fields
256
- end
257
-
258
239
  ### SETTINGS - ATTRIBUTES FOR FACETING
259
240
 
260
241
  def attributes_for_faceting
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MeiliSearch
4
- VERSION = '0.12.0'
4
+ VERSION = '0.13.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meilisearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meili
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-09 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty