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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fb15bd61b76373cf166b4977ef4ccf7598a7aaa9c7eb1ce85f6730a306ee18e
4
- data.tar.gz: 7e719a0c3e3bed01c3057f363688e4f5f4e447a72932585d2d9fc4a31006f0f2
3
+ metadata.gz: a82e04a29dcb4b36a19ba82fd93c92545e5c2aa10776ab4f09967a644cbfb31e
4
+ data.tar.gz: 4412111935d1d3ad614c38d50ba2a69d3e7f78a3f1f083623d34ee9abfa2e2ee
5
5
  SHA512:
6
- metadata.gz: 82b9c0d1d3deb894610ed834ed063f2864fdb19cbea2146a309b4a8ef1bbf21228141a618708da2955fb443f778b1f0799c4768ec5817ca0ea16ddbf547d91bf
7
- data.tar.gz: 40fa4e4803ac36dac67f2b588a416f40a60a48ebbfc356686d90f5b2127825f4a4accae56ba150474a0129ad0a40f1f339fb1a764c57122eb891bb03c0513fb5
6
+ metadata.gz: '084a00588bb7e8cad2144dde078c8868f3f29cf0b923bcee9fdce0f2fdd2bed864dde69cea0f93e2961a9eb00bec7e8084377c2a76c6c6b82f9c4f085edb605e'
7
+ data.tar.gz: 277805f05a1c4d6a0b0eed9b1ec584b2e722c48d1ac98f6667c590ff2abd18a9c81fa537eb6a0603e6acaa6fe68db0b691daefa18c608974318077a67d7b204b
@@ -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)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MeiliSearch
4
- VERSION = '0.28.3'
4
+ VERSION = '0.28.4'
5
5
 
6
6
  def self.qualified_version
7
7
  "Meilisearch Ruby (v#{VERSION})"
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.3
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-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty