mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-28 23:48:31 +02:00
fix: Go snippet indent
Signed-off-by: Anush008 <anushshetty90@gmail.com>
This commit is contained in:
@@ -1818,21 +1818,21 @@ import (
|
||||
"github.com/qdrant/go-client/qdrant"
|
||||
)
|
||||
|
||||
client, err := qdrant.NewClient(&qdrant.Config{
|
||||
Host: "localhost",
|
||||
Port: 6334,
|
||||
})
|
||||
client, err := qdrant.NewClient(&qdrant.Config{
|
||||
Host: "localhost",
|
||||
Port: 6334,
|
||||
})
|
||||
|
||||
client.Scroll(context.Background(), &qdrant.ScrollPoints{
|
||||
CollectionName: "{collection_name}",
|
||||
Filter: &qdrant.Filter{
|
||||
Must: []*qdrant.Condition{
|
||||
qdrant.NewMatch("color", "red"),
|
||||
},
|
||||
client.Scroll(context.Background(), &qdrant.ScrollPoints{
|
||||
CollectionName: "{collection_name}",
|
||||
Filter: &qdrant.Filter{
|
||||
Must: []*qdrant.Condition{
|
||||
qdrant.NewMatch("color", "red"),
|
||||
},
|
||||
Limit: qdrant.PtrOf(uint32(1)),
|
||||
WithPayload: qdrant.NewWithPayload(true),
|
||||
})
|
||||
},
|
||||
Limit: qdrant.PtrOf(uint32(1)),
|
||||
WithPayload: qdrant.NewWithPayload(true),
|
||||
})
|
||||
```
|
||||
|
||||
Returns all point with `color` = `red`.
|
||||
|
||||
Reference in New Issue
Block a user