Skip to content

Commit ec2de67

Browse files
committed
chore: add UUID and Vectors to grouped query object returns
1 parent e329393 commit ec2de67

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/main/java/io/weaviate/client6/v1/api/collections/generate/GenerativeResponseGrouped.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ static <PropertiesT> GenerativeResponseGrouped<PropertiesT> unmarshal(
3636
object.getMetadata(),
3737
collection))
3838
.map(object -> new QueryObjectGrouped<>(
39+
object.uuid(),
40+
object.vectors(),
3941
object.properties(),
4042
object.queryMetadata(),
4143
groupName))

src/main/java/io/weaviate/client6/v1/api/collections/query/QueryObjectGrouped.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
package io.weaviate.client6.v1.api.collections.query;
22

3+
import io.weaviate.client6.v1.api.collections.Vectors;
34
import io.weaviate.client6.v1.api.collections.WeaviateObject;
45

56
public record QueryObjectGrouped<PropertiesT>(
7+
String uuid,
8+
Vectors vectors,
69
/** Object properties. */
710
PropertiesT properties,
811
/** Object metadata. */
@@ -12,6 +15,11 @@ public record QueryObjectGrouped<PropertiesT>(
1215

1316
QueryObjectGrouped(WeaviateObject<PropertiesT> object,
1417
String belongsToGroup) {
15-
this(object.properties(), object.queryMetadata(), belongsToGroup);
18+
this(
19+
object.uuid(),
20+
object.vectors(),
21+
object.properties(),
22+
object.queryMetadata(),
23+
belongsToGroup);
1624
}
1725
}

0 commit comments

Comments
 (0)