Skip to content

Commit 0517e03

Browse files
visualYJDyuhaijun999
authored andcommitted
[fix][store] Fixup document index issue.
1 parent 2dc4040 commit 0517e03

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/document/document_index.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,13 @@ butil::Status DocumentIndex::Add(const std::vector<pb::common::DocumentWithId>&
289289
break;
290290
}
291291
}
292-
292+
if (text_column_names.empty() && i64_column_names.empty() && f64_column_names.empty() &&
293+
bytes_column_names.empty() && date_column_names.empty() && bool_column_names.empty()) {
294+
DINGO_LOG(INFO) << fmt::format(
295+
"[document_index.raw][id({})] document_id: ({}) document_value not set so not create document index", id_,
296+
document_id);
297+
continue;
298+
}
293299
auto bool_result = ffi_index_multi_type_column_docs(
294300
index_path_, document_id, text_column_names, text_column_docs, i64_column_names, i64_column_docs,
295301
f64_column_names, f64_column_docs, bytes_column_names, bytes_column_docs, date_column_names, date_column_docs,

0 commit comments

Comments
 (0)