From cd664adb50c4342768a5c2a1d8ac5b4b337f731e Mon Sep 17 00:00:00 2001 From: yah01 Date: Mon, 30 Jan 2023 14:05:54 +0800 Subject: [PATCH] Fix fill the string field twice when string index exists (#21852) (#21865) Signed-off-by: yah01 --- internal/querynode/segment.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/querynode/segment.go b/internal/querynode/segment.go index 6f043c05744b..045819a76ee0 100644 --- a/internal/querynode/segment.go +++ b/internal/querynode/segment.go @@ -552,7 +552,8 @@ func (s *Segment) fillIndexedFieldsData(ctx context.Context, collectionID Unique for _, fieldData := range result.FieldsData { // If the vector field doesn't have indexed. Vector data is in memory for // brute force search. No need to download data from remote. - if !s.hasLoadIndexForIndexedField(fieldData.FieldId) { + if fieldData.GetType() != schemapb.DataType_FloatVector && fieldData.GetType() != schemapb.DataType_BinaryVector || + !s.hasLoadIndexForIndexedField(fieldData.FieldId) { continue }