Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Commit df978fb

Browse files
author
Amit Kumar
committed
UT fix
1 parent fd98dd4 commit df978fb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

internal/core/src/index/TextMatchIndexBM25Test.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,10 @@ class TextMatchIndexBM25Test : public ::testing::Test {
5858
"{}");
5959
}
6060

61-
void AddDocuments(TextMatchIndex* index,
61+
void AddDocuments(TextMatchIndex* index,
6262
const std::vector<std::string>& docs,
6363
bool is_nullable = false) {
64-
std::vector<const char*> ptrs;
65-
for (const auto& doc : docs) {
66-
ptrs.push_back(doc.c_str());
67-
}
68-
index->AddTexts(docs.size(), ptrs.data(), nullptr);
64+
index->AddTextsGrowing(docs.size(), docs.data(), nullptr, 0);
6965
index->Commit();
7066
index->Reload();
7167
}

0 commit comments

Comments
 (0)