docs: Rust client usage update (#497)

* docs: explore updates rust-client

* docs: rust client usage fixes
This commit is contained in:
Anush
2024-01-04 17:17:24 +05:30
committed by GitHub
parent dc402ac2f2
commit 6b824222bb
4 changed files with 125 additions and 3 deletions
@@ -610,7 +610,7 @@ client.search("{collection_name}", {
use qdrant_client::{
client::QdrantClient,
qdrant::{
with_payload_selector::SelectorOptions, PayloadIncludeSelector, SearchPoints,
with_payload_selector::SelectorOptions, PayloadExcludeSelector, SearchPoints,
WithPayloadSelector,
},
};
@@ -622,7 +622,7 @@ client
collection_name: "{collection_name}".to_string(),
vector: vec![0.2, 0.1, 0.9, 0.7],
with_payload: Some(WithPayloadSelector {
selector_options: Some(SelectorOptions::Include(PayloadIncludeSelector {
selector_options: Some(SelectorOptions::Exclude(PayloadExcludeSelector {
fields: vec!["city".to_string()],
})),
}),
@@ -804,6 +804,7 @@ client
collection_name: "{collection_name}".to_string(),
search_points: searches,
read_consistency: None,
..Default::default()
})
.await?;
```