mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
* wip: initial docs * docs: Go snippets Signed-off-by: Anush008 <anushshetty90@gmail.com> * docs: Java snippets Signed-off-by: Anush008 <anushshetty90@gmail.com> * docs: Removed TODO! Signed-off-by: Anush008 <anushshetty90@gmail.com> * docs: C# snippets Signed-off-by: Anush008 <anushshetty90@gmail.com> * move collection metadata section into collection info * fix code fence mismatch in markdown * Remove empty line --------- Signed-off-by: Anush008 <anushshetty90@gmail.com> Co-authored-by: Anush008 <anushshetty90@gmail.com> Co-authored-by: trean <trean.mi@gmail.com> Co-authored-by: Tim Visée <tim@visee.me>
512 B
512 B
use qdrant_client::qdrant::{UpdateCollectionBuilder};
use qdrant_client::Qdrant;
use serde_json::{json, Value};
use std::collections::HashMap;
let client = Qdrant::from_url("http://localhost:6334").build()?;
let mut metadata: HashMap<String, Value> = HashMap::new();
metadata.insert("my-metadata-field".to_string(), json!({
"key-a": "value-a",
"key-b": 42
}));
client
.update_collection(
UpdateCollectionBuilder::new("{collection_name}").metadata(metadata),
)
.await?;