We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e557a8d commit 2dc4040Copy full SHA for 2dc4040
src/document/document_index.cc
@@ -245,7 +245,12 @@ butil::Status DocumentIndex::Add(const std::vector<pb::common::DocumentWithId>&
245
uint64_t document_id = document_with_id.id();
246
247
const auto& document = document_with_id.document();
248
+
249
for (const auto& [field_name, document_value] : document.document_data()) {
250
+ // skip the field which not set
251
+ if (document_value.field_value().data_case() == pb::common::ScalarField::DATA_NOT_SET) {
252
+ continue;
253
+ }
254
switch (document_value.field_type()) {
255
case pb::common::ScalarFieldType::STRING:
256
text_column_names.push_back(field_name);
0 commit comments