Add and retrieve metadata section of Collection Model definition (on creation or fetch)
還沒有人認領這個 Issue。
- #118 來自 @Nikhiladiga —— 已關閉,未合併
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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();
- 主要語言
- Java
- 星號
- 90
- 分支
- 39
- 平均合併
- 22 小時 26 分鐘
- 30 天內合併 PR
- 1
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
typesense/typesense-java 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 22/100
typesense/typesense-java#60 · 3 則留言 ·
-
難度 3/5 1-2 天 新手友好度 30/100
typesense/typesense-java#59 · 3 則留言 · 1 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 48/100
typesense/typesense-java#57 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 28/100
typesense/typesense-java#45 · 2 則留言 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 35/100
typesense/typesense-java#36 · 1 則留言 · 1 個 reaction ·
查看 typesense/typesense-java 的全部 Issue
相似的 Issue
-
documentation good first issue help wanted
難度 1/5 1 小時以內 新手友好度 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachment可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 75/100
eclipse-sw360/sw360#4849 ·
維護者通常 2 天內回覆
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabled可能已有人在做 @hutiefang76 今天認領。 未關閉accepted bug good first issue java
難度 2/5 1-3 小時 新手友好度 72/100
Sekelenao/Flinkboot#473 · 1 則留言 ·
維護者通常 1 天內回覆
-
help wanted priority: low Review effort [1-5]: 2 status: needs-triage type: tests
難度 1/5 1-3 小時 新手友好度 86/100
carlos-emr/carlos#6433 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 2 天內回覆