mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
* Add new 'Create a Payload Index' section * Add indexing tip to low latency search, search, and filtering docs * Add bash code snippet * Edits * Update qdrant-landing/content/documentation/manage-data/indexing.md Co-authored-by: Tim Visée <tim@visee.me> --------- Co-authored-by: Tim Visée <tim@visee.me>
23 lines
620 B
C#
23 lines
620 B
C#
using Qdrant.Client; // @hide
|
|
using Qdrant.Client.Grpc; // @hide
|
|
|
|
public class Snippet
|
|
{
|
|
public static async Task Run()
|
|
{
|
|
var client = new QdrantClient("localhost", 6334); // @hide
|
|
|
|
// @block-start get-current-value
|
|
var collectionInfo = await client.GetCollectionInfoAsync("{collection_name}");
|
|
var baseEf = collectionInfo.Config.HnswConfig.EfConstruct;
|
|
// @block-end get-current-value
|
|
|
|
// @block-start update-collection
|
|
await client.UpdateCollectionAsync(
|
|
collectionName: "{collection_name}",
|
|
hnswConfig: new HnswConfigDiff { EfConstruct = baseEf + 1 }
|
|
);
|
|
// @block-end update-collection
|
|
}
|
|
}
|