Skip to content

feat: add group_by_field_values to SearchResultData for multi-field composite group_by #581

@MrPresent-Han

Description

@MrPresent-Han

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions