Fix fill the string field twice when string index exists (#21852) (#21865)

Signed-off-by: yah01 <yang.cen@zilliz.com>
pull/21872/head
yah01 2023-01-30 14:05:54 +08:00 committed by GitHub
parent a4a20ee3fc
commit cd664adb50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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
}