We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c271d0 commit 8ca6f40Copy full SHA for 8ca6f40
lib/qdrant/points.rb
@@ -46,16 +46,21 @@ def upsert(
46
# Delete points
47
def delete(
48
collection_name:,
49
- points:, wait: nil,
+ points: nil,
50
+ wait: nil,
51
ordering: nil,
52
filter: nil
53
)
54
+
55
+ raise ArgumentError, "Either points or filter should be provided" if points.nil? && filter.nil?
56
57
response = client.connection.post("collections/#{collection_name}/#{PATH}/delete") do |req|
58
req.params["wait"] = wait unless wait.nil?
59
req.params["ordering"] = ordering unless ordering.nil?
60
61
req.body = {}
- req.body["points"] = points
62
63
+ req.body["points"] = points unless filter.nil?
64
req.body["filter"] = filter unless filter.nil?
65
end
66
response.body
0 commit comments