Skip to content

Commit

Permalink
Merge pull request #23856 from vespa-engine/toregge/empty-docsum-if-d…
Browse files Browse the repository at this point in the history
…ocument-is-gone

Use empty document summary if document is gone.
  • Loading branch information
baldersheim authored Aug 30, 2022
2 parents c817800 + cd3b761 commit 5e63e03
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ DynamicDocsumWriter::insertDocsum(const ResolveClassInfo & rci, uint32_t docid,
} else {
// look up docsum entry
auto doc = docinfos->getMappedDocsum(docid);
if (!doc) {
return; // Use empty docsum when document is gone
}
// insert docsum blob
vespalib::slime::Cursor & docsum = topInserter.insertObject();
for (uint32_t i = 0; i < rci.outputClass->GetNumEntries(); ++i) {
Expand Down

0 comments on commit 5e63e03

Please sign in to comment.