mirror of https://github.com/milvus-io/milvus.git
fix: Fix wrong trigger of json key index (#40026)
pr: https://github.com/milvus-io/milvus/pull/38039 Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/40027/head
parent
37874ed6d7
commit
f142b5bff8
|
@ -141,10 +141,6 @@ func needDoTextIndex(segment *SegmentInfo, fieldIDs []UniqueID) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if segment.GetTextStatsLogs() == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
for _, fieldID := range fieldIDs {
|
||||
if segment.GetTextStatsLogs()[fieldID] == nil {
|
||||
return true
|
||||
|
@ -159,10 +155,6 @@ func needDoJsonKeyIndex(segment *SegmentInfo, fieldIDs []UniqueID) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if segment.GetJsonKeyStats() == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
for _, fieldID := range fieldIDs {
|
||||
if segment.GetJsonKeyStats()[fieldID] == nil {
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue