From 5f040a20c18de81a983b7ace4222a886e05a7c39 Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Wed, 5 Jun 2019 10:53:09 +0300 Subject: [PATCH] [search_quality] Do not add harmful results to not found. --- .../features_collector_tool/features_collector_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/search/search_quality/features_collector_tool/features_collector_tool.cpp b/search/search_quality/features_collector_tool/features_collector_tool.cpp index 5c1d815214..cdd4faed55 100644 --- a/search/search_quality/features_collector_tool/features_collector_tool.cpp +++ b/search/search_quality/features_collector_tool/features_collector_tool.cpp @@ -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); }