typesense 0.8.0 → 0.9.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: 5acfb1b3cbcfd880a7d8fa39a759ad2cb82396e159cdac02d64e72a4047ca264
4
- data.tar.gz: 1e6d7ca55d559a86842e79e4ffb4db18327206e78c45ff039ff2a8fa59822a7b
3
+ metadata.gz: 717b58a0ddf1e2e262d8cf0e4c0a5e3e2f90a8e0cb259337a5d243a3fb0f901c
4
+ data.tar.gz: 89a094ce8f884ce68d068122b91a6a2df733cc7e77b128e49dd3396cb4c2f5ce
5
5
  SHA512:
6
- metadata.gz: 9fa4e3d1155043c18f873ee936eb5bf223d7faac05f99d311afaab9dd49faf2ba9088cf274c6c7402742422d951900f52626480f139949b6ad25e2245ba2f287
7
- data.tar.gz: fe7fe260705cab7bf02dd0ebf28395860ce27a047e7ff8687c4fed5cbc4baf8aa4f79be4fb2ba08897b0f50eaa6861a9d9b9f4a7647ad959a8387c563b1c1c69
6
+ metadata.gz: 69bbef4fea77ec0a97aa15d34a12168d5853c7eccb4a86866605fc536f8348fb80a31e807ff3b25ae342f95ff3569b421c54fd383164646a1585174bf66ad402
7
+ data.tar.gz: 8abf2ce30d9858d76150c8f81534d7f3e9bc6ad06a4fc33c2c01e0e6ffcfe49e7b0d02282e862bc95c5574a538966cc51c2f39e43e843abbb68333ef43f368da
data/README.md CHANGED
@@ -33,6 +33,7 @@ Tests are also a good place to know how the the library works internally: [spec]
33
33
 
34
34
  | Typesense Server | typesense-ruby |
35
35
  |------------------|----------------|
36
+ | \>= v0.17.0 | \>= v0.9.0 |
36
37
  | \>= v0.16.0 | \>= v0.8.0 |
37
38
  | \>= v0.15.0 | \>= v0.7.0 |
38
39
  | \>= v0.12.1 | \>= v0.5.0 |
@@ -258,6 +258,9 @@ documents << {
258
258
  }
259
259
  ap @typesense.collections['companies'].documents.import(documents, action: :update)
260
260
 
261
+ ## You can also bulk delete documents, using filter_by fields:
262
+ ap @typesense.collections['companies'].documents.delete(filter_by: 'num_employees:>100')
263
+
261
264
  ##
262
265
  # Export all documents in a collection in JSON Lines format
263
266
  # We use JSON Lines format for performance reasons. You can choose to parse selected lines as needed, by splitting on \n.
@@ -64,6 +64,10 @@ module Typesense
64
64
  @documents[document_id] ||= Document.new(@collection_name, document_id, @api_call)
65
65
  end
66
66
 
67
+ def delete(query_parameters = {})
68
+ @api_call.delete(endpoint_path, query_parameters)
69
+ end
70
+
67
71
  private
68
72
 
69
73
  def endpoint_path(operation = nil)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Typesense
4
- VERSION = '0.8.0'
4
+ VERSION = '0.9.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typesense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Typesense, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-25 00:00:00.000000000 Z
11
+ date: 2020-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print