meilisearch 0.28.3 → 0.28.4
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: a82e04a29dcb4b36a19ba82fd93c92545e5c2aa10776ab4f09967a644cbfb31e
|
4
|
+
data.tar.gz: 4412111935d1d3ad614c38d50ba2a69d3e7f78a3f1f083623d34ee9abfa2e2ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '084a00588bb7e8cad2144dde078c8868f3f29cf0b923bcee9fdce0f2fdd2bed864dde69cea0f93e2961a9eb00bec7e8084377c2a76c6c6b82f9c4f085edb605e'
|
7
|
+
data.tar.gz: 277805f05a1c4d6a0b0eed9b1ec584b2e722c48d1ac98f6667c590ff2abd18a9c81fa537eb6a0603e6acaa6fe68db0b691daefa18c608974318077a67d7b204b
|
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.28.
|
4
|
+
version: 0.28.4
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|