Delete collection

Đang mở
#45 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, search
Lĩnh vực
api

Hướng nghiên cứu

The reproduction calls collections(name).delete() and then collections("service").retrieve(), so start by checking whether collections(name) makes a request or only builds a handle, since the report expects null for a deleted collection. Run the snippet against a local Typesense server to see which call throws and what status comes back. Done means either a clear explanation of the expected post-delete behaviour or a documented change, and the maintainers need to agree on that first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

Drop collection does not seem to completely remove the collection.

Steps to reproduce

   CollectionResponse[] collectionResponses = client.getTypesenseClient().collections().retrieve();
for (CollectionResponse c : collectionResponses) {
	client.getTypesenseClient().collections(c.getName()).delete();
}
Collection collection = client.getTypesenseClient().collections("service");
		
if ( collection == null){
	// create the schema
}
else {
	CollectionResponse retrieve = collection.retrieve();
      // throws exception
}

Expected Behavior

Deleting an collection should drop the collection

Actual Behavior

After deleting a collection, the collection is not null, but when accessing it an exception is thrown

Metadata

Typesense Version: 0.24.1

OS:MacOs

Ngôn ngữ chính
Java
Star
90
Fork
39
Merge trung bình
22 giờ 26 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của typesense/typesense-java

Tất cả issue của typesense/typesense-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.