diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-07-04 20:31:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 20:31:55 +0200 |
commit | 21e106a8171d1e2e42a3d4bfb9361a30c627d138 (patch) | |
tree | 5ca69c070f9b0b4f50e0c00ebde0b1c67dc5146d | |
parent | b21d7c5890ca33700a35c4f7e3f1b8187a64645c (diff) | |
parent | 218f862a492c0d4bae55d5f4ed5ad6098079cdde (diff) |
Merge pull request #27635 from vespa-engine/balder/drop-check-for-valid-lid-temporarily
Drop checking for valid lid temporarily
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp index 52d7d906d4c..38336009f14 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp @@ -68,28 +68,22 @@ fillPartialResult(ResultProcessor::Context & context, size_t totalHits, size_t n PartialResult &pr = *context.result; pr.totalHits(totalHits); size_t maxHits = std::min(numHits, pr.maxSize()); - const search::BitVector & validLids = context._validLids; + //TODO :const search::BitVector & validLids = context._validLids; if (pr.hasSortData()) { FastS_SortSpec &spec = context.sort->sortSpec; for (size_t i = 0; i < maxHits; ++i) { - if (validLids.testBit(hits[i].getDocId())) { - pr.add(hits[i], spec.getSortRef(i)); - } + pr.add(hits[i], spec.getSortRef(i)); } } else { for (size_t i = 0; i < maxHits; ++i) { - if (validLids.testBit(hits[i].getDocId())) { - pr.add(hits[i]); - } + pr.add(hits[i]); } if ((bits != nullptr) && (pr.size() < pr.maxSize())) { for (unsigned int bitId = bits->getFirstTrueBit(); (bitId < bits->size()) && (pr.size() < pr.maxSize()); bitId = bits->getNextTrueBit(bitId + 1)) { - if (validLids.testBit(bitId)) { - pr.add(search::RankedHit(bitId)); - } + pr.add(search::RankedHit(bitId)); } } } |