meilisearch 0.19.1 β 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/lib/meilisearch/http_request.rb +4 -1
- data/lib/meilisearch/index.rb +30 -0
- 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: a40fa643cb41246f5e77e635458aa3e516b76806e63f10e41d49eae41a2fd357
|
4
|
+
data.tar.gz: deb1618089a993f0f34e79b836ebc650db402253939c95ad1c15cb222d15a33d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3e5ff462a29b80b1b8a36060301d42064563a9211109465bbc58b004bc7c5125c851ef9e22afb5c36c9c9197e1fa09ff30a3de8e90a57a9e9edfeb85a58723d
|
7
|
+
data.tar.gz: 287b3057c280021c31ff7e40ef91f8fc4c8733f52ae728ecc421b0b5ebfb0781ea02591804ef052da89cf37c006d6c0a03b20afc65b249ad4264ad9c59b750a3
|
data/README.md
CHANGED
@@ -28,6 +28,7 @@
|
|
28
28
|
|
29
29
|
## Table of Contents <!-- omit in toc -->
|
30
30
|
|
31
|
+
- [π Hacktoberfest](#-hacktoberfest)
|
31
32
|
- [π Documentation](#-documentation)
|
32
33
|
- [π§ Installation](#-installation)
|
33
34
|
- [π Getting Started](#-getting-started)
|
@@ -35,6 +36,14 @@
|
|
35
36
|
- [π‘ Learn More](#-learn-more)
|
36
37
|
- [βοΈ Development Workflow and Contributing](#οΈ-development-workflow-and-contributing)
|
37
38
|
|
39
|
+
## π Hacktoberfest
|
40
|
+
|
41
|
+
Itβs Hacktoberfest 2022 @Meilisearch
|
42
|
+
|
43
|
+
[Hacktoberfest](https://hacktoberfest.com/) is a celebration of the open-source community. This year, and for the third time in a row, Meilisearch is participating in this fantastic event.
|
44
|
+
|
45
|
+
Youβd like to contribute? Donβt hesitate to check out our [contributing guidelines](./CONTRIBUTING.md).
|
46
|
+
|
38
47
|
## π Documentation
|
39
48
|
|
40
49
|
See our [Documentation](https://docs.meilisearch.com/learn/tutorials/getting_started.html) or our [API References](https://docs.meilisearch.com/reference/api/).
|
@@ -197,7 +206,7 @@ JSON output:
|
|
197
206
|
|
198
207
|
## π€ Compatibility with Meilisearch
|
199
208
|
|
200
|
-
This package only guarantees the compatibility with the [version v0.
|
209
|
+
This package only guarantees the compatibility with the [version v0.29.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.29.0).
|
201
210
|
|
202
211
|
## π‘ Learn More
|
203
212
|
|
@@ -90,7 +90,10 @@ module MeiliSearch
|
|
90
90
|
{
|
91
91
|
'Content-Type' => 'application/json',
|
92
92
|
'Authorization' => ("Bearer #{@api_key}" unless @api_key.nil?),
|
93
|
-
'User-Agent' =>
|
93
|
+
'User-Agent' => [
|
94
|
+
@options.fetch(:client_agents, []),
|
95
|
+
MeiliSearch.qualified_version
|
96
|
+
].flatten.join(';')
|
94
97
|
}.compact
|
95
98
|
end
|
96
99
|
|
data/lib/meilisearch/index.rb
CHANGED
@@ -396,5 +396,35 @@ module MeiliSearch
|
|
396
396
|
def reset_pagination
|
397
397
|
http_delete "/indexes/#{@uid}/settings/pagination"
|
398
398
|
end
|
399
|
+
|
400
|
+
def typo_tolerance
|
401
|
+
http_get("/indexes/#{@uid}/settings/typo-tolerance")
|
402
|
+
end
|
403
|
+
alias get_typo_tolerance typo_tolerance
|
404
|
+
|
405
|
+
def update_typo_tolerance(typo_tolerance_attributes)
|
406
|
+
attributes = Utils.transform_attributes(typo_tolerance_attributes)
|
407
|
+
http_patch("/indexes/#{@uid}/settings/typo-tolerance", attributes)
|
408
|
+
end
|
409
|
+
alias typo_tolerance= update_typo_tolerance
|
410
|
+
|
411
|
+
def reset_typo_tolerance
|
412
|
+
http_delete("/indexes/#{@uid}/settings/typo-tolerance")
|
413
|
+
end
|
414
|
+
|
415
|
+
def faceting
|
416
|
+
http_get("/indexes/#{@uid}/settings/faceting")
|
417
|
+
end
|
418
|
+
alias get_faceting faceting
|
419
|
+
|
420
|
+
def update_faceting(faceting_attributes)
|
421
|
+
attributes = Utils.transform_attributes(faceting_attributes)
|
422
|
+
http_patch("/indexes/#{@uid}/settings/faceting", attributes)
|
423
|
+
end
|
424
|
+
alias faceting= update_faceting
|
425
|
+
|
426
|
+
def reset_faceting
|
427
|
+
http_delete("/indexes/#{@uid}/settings/faceting")
|
428
|
+
end
|
399
429
|
end
|
400
430
|
end
|
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.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Meili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|