meilisearch 0.28.3 → 0.29.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/index.rb +8 -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: 07ebab8519a40f392916e9b9f52a48002121c781dd8a2c7ab666e4c39adb0f9e
|
4
|
+
data.tar.gz: 30087e85e8b2dad33b89d8006c3730c5493f9177ffb33db589fe779ac2dc3adf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b36ec117ea1fef77e1c862b2cb877a5d29e52f7924a7aa1a8215c5e613b6e3952182d4de979ad79aa69823655f2cbb43c1e11c392185fe65864566b5f269292
|
7
|
+
data.tar.gz: e4303f28920e02647de29c739f37217e8980e80d7e7266ec4c562d7f4dab3007eb18a32094e8e03c3f28649c9ca7a8a0b045bc5485cbf3d6cf93ea6123262cd0
|
data/lib/meilisearch/index.rb
CHANGED
@@ -271,6 +271,14 @@ module MeiliSearch
|
|
271
271
|
response
|
272
272
|
end
|
273
273
|
|
274
|
+
# document_id: Identifier of the target document
|
275
|
+
def search_similar_documents(document_id, **options)
|
276
|
+
options.merge!(id: document_id)
|
277
|
+
options = Utils.transform_attributes(options)
|
278
|
+
|
279
|
+
http_post("/indexes/#{@uid}/similar", options)
|
280
|
+
end
|
281
|
+
|
274
282
|
### FACET SEARCH
|
275
283
|
|
276
284
|
def facet_search(name, query = '', **options)
|
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.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Meili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|