mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-11 05:48:31 +02:00
Regenerate snippet .md files
Run `./generate-md.py` to update generated markdown files after semi-manual changes made in the previous commit. This commit serves as a gist of fixed issues found in snippets. (it's easier to review 250 lines diff rather than 31k lines diff, isn't it?)
This commit is contained in:
+2
-2
@@ -16,8 +16,8 @@ client.CreateFieldIndex(context.Background(), &qdrant.CreateFieldIndexCollection
|
||||
FieldType: qdrant.FieldType_FieldTypeInteger.Enum(),
|
||||
FieldIndexParams: qdrant.NewPayloadIndexParamsInt(
|
||||
&qdrant.IntegerIndexParams{
|
||||
Lookup: false,
|
||||
Range: true,
|
||||
Lookup: qdrant.PtrOf(false),
|
||||
Range: qdrant.PtrOf(true),
|
||||
}),
|
||||
})
|
||||
```
|
||||
|
||||
+4
-10
@@ -1,9 +1,8 @@
|
||||
```rust
|
||||
use qdrant_client::qdrant::{
|
||||
payload_index_params::IndexParams, CreateFieldIndexCollectionBuilder, FieldType,
|
||||
IntegerIndexParams, PayloadIndexParams,
|
||||
};
|
||||
use qdrant_client::Qdrant;
|
||||
use qdrant_client::qdrant::{
|
||||
CreateFieldIndexCollectionBuilder, FieldType, IntegerIndexParamsBuilder,
|
||||
};
|
||||
|
||||
let client = Qdrant::from_url("http://localhost:6334").build()?;
|
||||
|
||||
@@ -14,12 +13,7 @@ client
|
||||
"name_of_the_field_to_index",
|
||||
FieldType::Integer,
|
||||
)
|
||||
.field_index_params(PayloadIndexParams {
|
||||
index_params: Some(IndexParams::IntegerIndexParams(IntegerIndexParams {
|
||||
lookup: false,
|
||||
range: true,
|
||||
})),
|
||||
}),
|
||||
.field_index_params(IntegerIndexParamsBuilder::new(false, true).build()),
|
||||
)
|
||||
.await?;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user