diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-11-07 20:36:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 20:36:59 +0100 |
commit | 1e8cf6c828048d8ad6d3a0e8c663b9a76db59d19 (patch) | |
tree | 9283f2384ec598abae90b5aab674f898b03d698d /searchcore | |
parent | c22d1b0b77f40352769672aa7c8993e3afbed1c9 (diff) | |
parent | e8baf5b19277cd46ff36ea3a8823f598f53954ef (diff) |
Merge pull request #29270 from vespa-engine/balder/do-not-offer-post-filters-further-down
Balder/do not offer post filters further down
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp index 908843ca3ca..b64d5ba4c05 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp @@ -92,7 +92,9 @@ do_limit(AttributeLimiter &limiter_factory, SearchIterator::UP search, double ma uint32_t current_id, uint32_t end_id) { SearchIterator::UP limiter = limiter_factory.create_search(wanted_num_docs, max_group_size, match_freq, PRE_FILTER); - limiter = search->andWith(std::move(limiter), wanted_num_docs); + if (PRE_FILTER) { + limiter = search->andWith(std::move(limiter), wanted_num_docs); + } if (limiter) { search = std::make_unique<LimitedSearchT<PRE_FILTER>>(std::move(limiter), std::move(search)); } |