summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-10-13 12:24:21 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-10-14 14:17:12 +0000
commit8f094ec8f60ebda9fb65b2d6bf1809ff2aaa4675 (patch)
treec4d57ab5b275737eeeb2a920b36aaedfe998a7af /searchcore
parent220dc3912a2bf7df53cce55d4d1e9901ad935894 (diff)
Remove always true QFLAG_REPORT_COVERAGE
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/program/searchadapter.cpp8
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/search/fnet_search.cpp3
2 files changed, 3 insertions, 8 deletions
diff --git a/searchcore/src/vespa/searchcore/fdispatch/program/searchadapter.cpp b/searchcore/src/vespa/searchcore/fdispatch/program/searchadapter.cpp
index d179ac3bef3..6317061f8da 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/program/searchadapter.cpp
+++ b/searchcore/src/vespa/searchcore/fdispatch/program/searchadapter.cpp
@@ -66,12 +66,8 @@ SearchAdapter::createReply()
_queryResult->_groupResult + _queryResult->_groupResultLen);
}
- if ((_request->queryFlags &
- search::fs4transport::QFLAG_REPORT_COVERAGE) != 0)
- {
- r.useCoverage = true;
- r.coverage = SearchReply::Coverage(_searchInfo->_activeDocs, _searchInfo->_coverageDocs);
- }
+ r.useCoverage = true;
+ r.coverage = SearchReply::Coverage(_searchInfo->_activeDocs, _searchInfo->_coverageDocs);
FastS_hitresult *hitbuf = _queryResult->_hitbuf;
r.hits.resize(hitcnt);
diff --git a/searchcore/src/vespa/searchcore/fdispatch/search/fnet_search.cpp b/searchcore/src/vespa/searchcore/fdispatch/search/fnet_search.cpp
index 4a3f43b5c2d..fe0d9aab46f 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/search/fnet_search.cpp
+++ b/searchcore/src/vespa/searchcore/fdispatch/search/fnet_search.cpp
@@ -1175,8 +1175,7 @@ FastS_FNET_Search::setupQueryPacket(uint32_t hitsPerNode, uint32_t qflags,
FastS_ISearch::RetCode
FastS_FNET_Search::ProcessQueryDone()
{
- if (_util.IsQueryFlagSet(search::fs4transport::QFLAG_REPORT_COVERAGE))
- CheckCoverage();
+ CheckCoverage();
if (_errorCode == search::engine::ECODE_NO_ERROR) {
MergeHits();