mirror of https://github.com/djcb/mu.git
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:
parent
1b2fb3b9bd
commit
9f50ad9cf5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue