mu-query-match-decider: add 'Related' to flags

We were _replacing_ the flags (such as Duplicate), but we should add to
them instead.

Add a unit-test for this.
This commit is contained in:
Dirk-Jan C. Binnema 2022-12-08 19:31:07 +02:00
parent 1b2fb3b9bd
commit 9f50ad9cf5
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ struct MatchDeciderRelated final : public MatchDecider {
auto qm{make_query_match(doc)};
if (should_include(qm)) {
qm.flags = QueryMatch::Flags::Related;
qm.flags |= QueryMatch::Flags::Related;
decider_info_.matches.emplace(doc.get_docid(), std::move(qm));
return true;
} else