Summary
Add group_by_field_values (field 17) to SearchResultData to support returning multi-field composite group_by key values from segcore to the proxy layer.
Background
The existing group_by_field_value (field 8, singular) supports only single-field group_by. To support multi-field composite group_by (analogous to ES multi_terms aggregation), the segcore needs to return one FieldData per group_by field, allowing the proxy to reconstruct nested bucket hierarchies and compute metrics.
Field 16 (order_by_field_values) was added for the search order_by feature but was never written to by any code. It is replaced here with a reserved directive to prevent future wire-format conflicts, and the new group_by_field_values is added at field 17.
Changes
proto/schema.proto: reserve field 16 (was unused order_by_field_values), add repeated FieldData group_by_field_values = 17
- Regenerate Go bindings in
go-api/v2/schemapb/schema.pb.go
Related PR
milvus-io/milvus#48971
Summary
Add
group_by_field_values(field 17) toSearchResultDatato support returning multi-field composite group_by key values from segcore to the proxy layer.Background
The existing
group_by_field_value(field 8, singular) supports only single-field group_by. To support multi-field composite group_by (analogous to ESmulti_termsaggregation), the segcore needs to return oneFieldDataper group_by field, allowing the proxy to reconstruct nested bucket hierarchies and compute metrics.Field 16 (
order_by_field_values) was added for the search order_by feature but was never written to by any code. It is replaced here with areserveddirective to prevent future wire-format conflicts, and the newgroup_by_field_valuesis added at field 17.Changes
proto/schema.proto: reserve field 16 (was unusedorder_by_field_values), addrepeated FieldData group_by_field_values = 17go-api/v2/schemapb/schema.pb.goRelated PR
milvus-io/milvus#48971