meilisearch 0.28.2 → 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: d7d49c317408cfd47fe666dd7f21f346f9c107fa01e7505a7c70993c54709681
4
- data.tar.gz: deeac2295e5afdc0b87c5441c1dc69cd134fae9a3029d2b7eba4d580425b1d6b
3
+ metadata.gz: a82e04a29dcb4b36a19ba82fd93c92545e5c2aa10776ab4f09967a644cbfb31e
4
+ data.tar.gz: 4412111935d1d3ad614c38d50ba2a69d3e7f78a3f1f083623d34ee9abfa2e2ee
5
5
  SHA512:
6
- metadata.gz: 6aa5945c623ed7a407ccda6a2d5b6a7ef4a19697ae08caaa8fbd8198930ac6b2ead9bdd5a8faf958a2b81c44c3a5e1f671567b1cd6c3e04ee26692c370b68ad4
7
- data.tar.gz: 51b4d954bb4f615026a641fc3dc29bc8e4d381d73a3192866f38289a82a544adcfd2fcd2e8df5ecc1f26df6c89f476624c7ca735507c5c6c4e4c7b4e0e1f5a8c
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.2'
4
+ VERSION = '0.28.4'
5
5
 
6
6
  def self.qualified_version
7
7
  "Meilisearch Ruby (v#{VERSION})"
data/lib/meilisearch.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'json'
4
+
3
5
  require 'meilisearch/version'
4
6
  require 'meilisearch/utils'
5
7
  require 'meilisearch/models/task'
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.2
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-16 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