...
Code Block |
---|
// For vector output fields, load raw data from fieldBinlog if needed, // get vector raw data via result.Offset from *VectorfieldInfo, then // fill vector raw data into result func (q *queryCollection) fillVectorFieldsData(segment *Segment, result *segcorepb.RetrieveResults) error |
We also enhanced query to support wildcard in output fields.
- "*" - means all scalar fields
- "%" - means all vector fields
For example, A/B are scalar fields, C/D are vector fields, duplicated fields are automatically removed.
- output_fields=["*"] ==> [A,B]
- output_fields=["%"] ==> [C,D]
- output_fields=["*","%"] ==> [A,B,C,D]
- output_fields=["*",A] ==> [A,B]
- output_fields=["*",C] ==> [A,B,C]
Original vector data storage public interface and struct
...