[search_quality] Do not add harmful results to not found.

This commit is contained in:
tatiana-yan 2019-06-05 10:53:09 +03:00 committed by mpimenov
parent 96342342ba
commit 5f040a20c1

View file

@ -177,7 +177,8 @@ int main(int argc, char * argv[])
for (size_t j = 0; j < goldenMatching.size(); ++j)
{
if (goldenMatching[j] == Matcher::kInvalidId &&
sample.m_results[j].m_relevance != Sample::Result::Relevance::Irrelevant)
sample.m_results[j].m_relevance != Sample::Result::Relevance::Irrelevant &&
sample.m_results[j].m_relevance != Sample::Result::Relevance::Harmful)
{
s.m_notFound.push_back(j);
}