mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
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:
+2
-1
@@ -1,9 +1,10 @@
|
||||
```csharp
|
||||
using Qdrant.Client;
|
||||
using Qdrant.Client.Grpc;
|
||||
|
||||
await client.FacetAsync(
|
||||
"{collection_name}",
|
||||
key: "size",
|
||||
exact: true,
|
||||
exact: true
|
||||
);
|
||||
```
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
```go
|
||||
res, err := client.Facet(ctx, &qdrant.FacetCounts{
|
||||
res, err := client.Facet(context.Background(), &qdrant.FacetCounts{
|
||||
CollectionName: "{collection_name}",
|
||||
Key: "key",
|
||||
Exact: true,
|
||||
Exact: qdrant.PtrOf(true),
|
||||
})
|
||||
```
|
||||
|
||||
+4
-2
@@ -1,8 +1,10 @@
|
||||
```java
|
||||
import io.qdrant.client.grpc.Points.FacetCounts;
|
||||
|
||||
client
|
||||
.facetAsync(
|
||||
Points.FacetCounts.newBuilder()
|
||||
.setCollectionName(collection_name)
|
||||
FacetCounts.newBuilder()
|
||||
.setCollectionName("{collection_name}")
|
||||
.setKey("foo")
|
||||
.setExact(true)
|
||||
.build())
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ client, err := qdrant.NewClient(&qdrant.Config{
|
||||
Port: 6334,
|
||||
})
|
||||
|
||||
res, err := client.Facet(ctx, &qdrant.FacetCounts{
|
||||
res, err := client.Facet(context.Background(), &qdrant.FacetCounts{
|
||||
CollectionName: "{collection_name}",
|
||||
Key: "size",
|
||||
Filter: &qdrant.Filter{
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ import static io.qdrant.client.ConditionFactory.matchKeyword;
|
||||
|
||||
import io.qdrant.client.QdrantClient;
|
||||
import io.qdrant.client.QdrantGrpcClient;
|
||||
import io.qdrant.client.grpc.Filter;
|
||||
import io.qdrant.client.grpc.Common.Filter;
|
||||
import io.qdrant.client.grpc.Points;
|
||||
|
||||
QdrantClient client = new QdrantClient(
|
||||
@@ -12,7 +12,7 @@ QdrantClient client = new QdrantClient(
|
||||
client
|
||||
.facetAsync(
|
||||
Points.FacetCounts.newBuilder()
|
||||
.setCollectionName(collection_name)
|
||||
.setCollectionName("{collection_name}")
|
||||
.setKey("size")
|
||||
.setFilter(Filter.newBuilder().addMust(matchKeyword("color", "red")).build())
|
||||
.build())
|
||||
|
||||
+8
-1
@@ -6,6 +6,13 @@ client = QdrantClient(url="http://localhost:6333")
|
||||
client.facet(
|
||||
collection_name="{collection_name}",
|
||||
key="size",
|
||||
facet_filter=models.Filter(must=[models.Match("color", "red")]),
|
||||
facet_filter=models.Filter(
|
||||
must=[
|
||||
models.FieldCondition(
|
||||
key="color",
|
||||
match=models.MatchValue(value="red"),
|
||||
)
|
||||
]
|
||||
),
|
||||
)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user