From f1783f637b2af1948e2a7eacbc4d8ed963941757 Mon Sep 17 00:00:00 2001 From: Arnaud Gourlay Date: Thu, 16 Jan 2025 15:56:30 +0100 Subject: [PATCH] fix go booleans --- .../content/documentation/concepts/collections.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qdrant-landing/content/documentation/concepts/collections.md b/qdrant-landing/content/documentation/concepts/collections.md index 8fddba518..a0e16f3be 100644 --- a/qdrant-landing/content/documentation/concepts/collections.md +++ b/qdrant-landing/content/documentation/concepts/collections.md @@ -885,8 +885,8 @@ client, err := qdrant.NewClient(&qdrant.Config{ client.CreateCollection(context.Background(), &qdrant.CreateCollection{ CollectionName: "{collection_name}", StrictModeConfig: &qdrant.StrictModeConfig{ - Enabled: true, - IndexingThreshold: true, + Enabled: qdrant.PtrOf(true), + IndexingThreshold: qdrant.PtrOf(true), }, }) ``` @@ -982,8 +982,8 @@ client, err := qdrant.NewClient(&qdrant.Config{ client.UpdateCollection(context.Background(), &qdrant.UpdateCollection{ CollectionName: "{collection_name}", StrictModeConfig: &qdrant.StrictModeConfig{ - Enabled: true, - IndexingThreshold: true, + Enabled: qdrant.PtrOf(true), + IndexingThreshold: qdrant.PtrOf(true), }, }) ``` @@ -1075,7 +1075,7 @@ client, err := qdrant.NewClient(&qdrant.Config{ client.UpdateCollection(context.Background(), &qdrant.UpdateCollection{ CollectionName: "{collection_name}", StrictModeConfig: &qdrant.StrictModeConfig{ - Enabled: false, + Enabled: qdrant.PtrOf(false), }, }) ```