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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fb15bd61b76373cf166b4977ef4ccf7598a7aaa9c7eb1ce85f6730a306ee18e
4
- data.tar.gz: 7e719a0c3e3bed01c3057f363688e4f5f4e447a72932585d2d9fc4a31006f0f2
3
+ metadata.gz: 07ebab8519a40f392916e9b9f52a48002121c781dd8a2c7ab666e4c39adb0f9e
4
+ data.tar.gz: 30087e85e8b2dad33b89d8006c3730c5493f9177ffb33db589fe779ac2dc3adf
5
5
  SHA512:
6
- metadata.gz: 82b9c0d1d3deb894610ed834ed063f2864fdb19cbea2146a309b4a8ef1bbf21228141a618708da2955fb443f778b1f0799c4768ec5817ca0ea16ddbf547d91bf
7
- data.tar.gz: 40fa4e4803ac36dac67f2b588a416f40a60a48ebbfc356686d90f5b2127825f4a4accae56ba150474a0129ad0a40f1f339fb1a764c57122eb891bb03c0513fb5
6
+ metadata.gz: 5b36ec117ea1fef77e1c862b2cb877a5d29e52f7924a7aa1a8215c5e613b6e3952182d4de979ad79aa69823655f2cbb43c1e11c392185fe65864566b5f269292
7
+ data.tar.gz: e4303f28920e02647de29c739f37217e8980e80d7e7266ec4c562d7f4dab3007eb18a32094e8e03c3f28649c9ca7a8a0b045bc5485cbf3d6cf93ea6123262cd0
@@ -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.29.0'
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.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-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty