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:
xzfc
2025-11-28 22:02:34 +00:00
parent 74a785218b
commit 178a9bae72
164 changed files with 248 additions and 220 deletions
@@ -7,7 +7,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="name_of_the_field_to_index",
field_schema=models.TextIndexParams(
type="text",
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
ascii_folding=True,
),
@@ -2,6 +2,7 @@
import io.qdrant.client.QdrantClient;
import io.qdrant.client.QdrantGrpcClient;
import io.qdrant.client.grpc.Collections.IntegerIndexParams;
import io.qdrant.client.grpc.Collections.KeywordIndexParams;
import io.qdrant.client.grpc.Collections.PayloadIndexParams;
import io.qdrant.client.grpc.Collections.PayloadSchemaType;
@@ -15,8 +16,8 @@ client
PayloadSchemaType.Integer,
PayloadIndexParams.newBuilder()
.setIntegerIndexParams(
KeywordIndexParams.newBuilder()
.setIsPrincipa(true)
IntegerIndexParams.newBuilder()
.setIsPrincipal(true)
.build())
.build(),
null,
@@ -4,7 +4,7 @@ use qdrant_client::qdrant::{
IntegerIndexParamsBuilder,
FieldType
};
use qdrant_client::{Qdrant, QdrantError};
use qdrant_client::Qdrant;
let client = Qdrant::from_url("http://localhost:6334").build()?;
@@ -18,5 +18,5 @@ client.create_field_index(
IntegerIndexParamsBuilder::default()
.is_principal(true),
),
);
).await?;
```
@@ -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),
}),
})
```
@@ -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?;
```
@@ -4,7 +4,8 @@ use qdrant_client::qdrant::{
KeywordIndexParamsBuilder,
FieldType
};
use qdrant_client::{Qdrant, QdrantError};
use qdrant_client::Qdrant;
let client = Qdrant::from_url("http://localhost:6334").build()?;
@@ -18,5 +19,5 @@ client.create_field_index(
KeywordIndexParamsBuilder::default()
.is_tenant(true),
),
);
).await?;
```
@@ -4,7 +4,7 @@ use qdrant_client::qdrant::{
KeywordIndexParamsBuilder,
FieldType
};
use qdrant_client::{Qdrant, QdrantError};
use qdrant_client::Qdrant;
let client = Qdrant::from_url("http://localhost:6334").build()?;
@@ -18,5 +18,5 @@ client.create_field_index(
KeywordIndexParamsBuilder::default()
.on_disk(true),
),
);
).await?;
```
@@ -7,7 +7,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="name_of_the_field_to_index",
field_schema=models.TextIndexParams(
type="text",
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
lowercase=False,
),
@@ -7,7 +7,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="name_of_the_field_to_index",
field_schema=models.TextIndexParams(
type="text",
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
lowercase=True,
phrase_matching=True,
@@ -7,7 +7,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="name_of_the_field_to_index",
field_schema=models.TextIndexParams(
type="text",
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
min_token_len=2,
max_token_len=10,
@@ -7,7 +7,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="name_of_the_field_to_index",
field_schema=models.TextIndexParams(
type="text",
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
stemmer=models.SnowballParams(
type=models.Snowball.SNOWBALL,
@@ -8,7 +8,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="name_of_the_field_to_index",
field_schema=models.TextIndexParams(
type="text",
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
stopwords=models.Language.ENGLISH,
),
@@ -19,7 +19,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="name_of_the_field_to_index",
field_schema=models.TextIndexParams(
type="text",
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
stopwords=models.StopwordsSet(
languages=[
@@ -1,5 +1,6 @@
```csharp
using Qdrant.Client;
using Qdrant.Client.Grpc;
var client = new QdrantClient("localhost", 6334);
@@ -3,7 +3,7 @@ client.create_payload_index(
collection_name="{collection_name}",
field_name="group_id",
field_schema=models.KeywordIndexParams(
type="keyword",
type=models.KeywordIndexType.KEYWORD,
is_tenant=True,
),
)
@@ -4,7 +4,7 @@ use qdrant_client::qdrant::{
KeywordIndexParamsBuilder,
FieldType
};
use qdrant_client::{Qdrant, QdrantError};
use qdrant_client::Qdrant;
let client = Qdrant::from_url("http://localhost:6334").build()?;