mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
fix: keep legacy ngram index files compatible (#49572)
issue: https://github.com/milvus-io/milvus/issues/46813 Signed-off-by: Buqian Zheng <zhengbuqian@gmail.com>
This commit is contained in:
@@ -194,15 +194,7 @@ NgramInvertedIndex::BuildWithJsonFieldData(
|
||||
|
||||
BinarySet
|
||||
NgramInvertedIndex::Serialize(const Config& config) {
|
||||
auto res_set = InvertedIndexTantivy<std::string>::Serialize(config);
|
||||
|
||||
// Serialize avg_row_size
|
||||
std::shared_ptr<uint8_t[]> avg_row_size_data(new uint8_t[sizeof(size_t)]);
|
||||
memcpy(avg_row_size_data.get(), &avg_row_size_, sizeof(size_t));
|
||||
res_set.Append(
|
||||
NGRAM_AVG_ROW_SIZE_FILE_NAME, avg_row_size_data, sizeof(size_t));
|
||||
|
||||
return res_set;
|
||||
return InvertedIndexTantivy<std::string>::Serialize(config);
|
||||
}
|
||||
|
||||
IndexStatsPtr
|
||||
|
||||
Reference in New Issue
Block a user