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 +4 -4
- data/lib/meilisearch/client.rb +0 -8
- data/lib/meilisearch/error.rb +1 -1
- data/lib/meilisearch/index.rb +2 -21
- data/lib/meilisearch/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: 92d1afdaa529593e643fa0e297bf3b8d56671c2163937fb5f30e1dd0193f2725
|
4
|
+
data.tar.gz: f7849b8a8a9343a706c05b74e23c1959c330bde18bb8366ba04adf6efa9577b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f887ad9f507f236fe54a6f56df028c4d33e3e730d1d56c886e774b1cf055b6aa153fe2ec51a3ad5f775309027deaa9c496de2da8e6bfd988efffa046097f346
|
7
|
+
data.tar.gz: 433afbfd38336ef77cd8bb6538dd7ebf3a100d14b8f436236b907c968eaa7875372863bf90d32272404af01395e8968f50f65aed8a7674e0ad9f132798b48d58
|
data/lib/meilisearch/client.rb
CHANGED
data/lib/meilisearch/error.rb
CHANGED
@@ -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
|
24
|
+
@message = "#{http_code} #{http_message} - #{@ms_message}. See #{ms_link}."
|
25
25
|
super(details)
|
26
26
|
end
|
27
27
|
|
data/lib/meilisearch/index.rb
CHANGED
@@ -81,16 +81,8 @@ module MeiliSearch
|
|
81
81
|
### SEARCH
|
82
82
|
|
83
83
|
def search(query, options = {})
|
84
|
-
parsed_options = options.
|
85
|
-
|
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
|
data/lib/meilisearch/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|