Add and retrieve metadata section of Collection Model definition (on creation or fetch)
Chưa có ai nhận issue này.
- #118 của @Nikhiladiga — đã đóng, không merge
Đá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
- 45/100
Hướng nghiên cứu
Start with CollectionSchema.java, which needs a metadata field with getter and setter for a Map<String,Object>, then check the collection retrieve response model so getMetadata() can be read back. Look at how the collections create and retrieve calls serialize these models. Done means a collection can be created with metadata and the same metadata is returned on retrieve. Closed, unmerged PR #118 already attempted this, so read it first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
On collection create action, via API you be able to send metadata, but typesense-java-sdk does not support this field.
Steps to reproduce
Offical Docs at https://typesense.org/docs/27.1/api/collections.html#adding-metadata-to-schema.
Expected Behavior
That CollectionSchema.java has new field "metadata" with signature similar to:
collectionschema.setMetaData(Map<String,Object> metadata);
The user be able to use in this way:
var metadata = new HashMap<String,Object>();
metadata.put("batch_job", 325);
metadata.put("indexed_from", "2023-04-20T00:00:00.000Z")
collectionSchema.setMetadata(metadata;
client.collections().create(collectionSchema); //Will create collection adding metadata
Actual Behavior
It's not supported.
Metadata
Typesense Version JAVA: v1.0.0
OS:
Would be great to fetch metadata info using client.collections("products").retrieve().getMetadata();
- 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
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của typesense/typesense-java
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 22/100
typesense/typesense-java#60 · 3 bình luận ·
-
Timeout exceptionĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
typesense/typesense-java#59 · 3 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
typesense/typesense-java#57 · 1 bình luận ·
-
Delete collectionĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 28/100
typesense/typesense-java#45 · 2 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
typesense/typesense-java#36 · 1 bình luận · 1 reaction ·
Tất cả issue của typesense/typesense-java
Issue tương tự
-
documentation good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eclipse-sw360/sw360#4849 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledCó thể đã có người làm @hutiefang76 đã nhận hôm nay. Đang mởaccepted bug good first issue java
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Sekelenao/Flinkboot#473 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted priority: low Review effort [1-5]: 2 status: needs-triage type: tests
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
carlos-emr/carlos#6433 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày