Only count nodes that are real. Not the virtual ones that exist in hetrogenous hierarchical groups.
@@ -874,6 +874,7 @@ FastS_FNET_Search::CheckCoverage()
size_t cntNone(0);
for (const FastS_FNET_SearchNode & node : _nodes) {
+ if (node.IsConnected()) {
if (node._qresult != nullptr) {
covDocs += node._qresult->_coverageDocs;
activeDocs += node._qresult->_activeDocs;
@@ -886,6 +887,7 @@ FastS_FNET_Search::CheckCoverage()
cntNone++;
}
}
+ }
const ssize_t missingParts = cntNone - (_dataset->getSearchableCopies() - 1);
if ((missingParts > 0) && (cntNone != _nodes.size())) {
// TODO This is a dirty way of anticipating missing coverage.
