mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
This commit both: - Fixes pre-existing mistakes in snippets, aka wrong code samples. - Adds hidden (`@hide`) statements that do not appear in the docs, but satisfy typecheckers.
24 lines
447 B
C#
24 lines
447 B
C#
using Qdrant.Client;
|
|
using Qdrant.Client.Grpc;
|
|
|
|
public class Snippet
|
|
{
|
|
public static async Task Run()
|
|
{
|
|
var client = new QdrantClient("localhost", 6334);
|
|
|
|
await client.CreatePayloadIndexAsync(
|
|
collectionName: "{collection_name}",
|
|
fieldName: "group_id",
|
|
schemaType: PayloadSchemaType.Keyword,
|
|
indexParams: new PayloadIndexParams
|
|
{
|
|
KeywordIndexParams = new KeywordIndexParams
|
|
{
|
|
IsTenant = true
|
|
}
|
|
}
|
|
);
|
|
}
|
|
}
|