diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2024-02-23 09:41:04 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2024-02-23 12:23:53 +0000 |
commit | fbc08038079b6079fcc12b1f54eba4d59acabe83 (patch) | |
tree | 218e277d83da7794b14ce449066df371ff4fc394 /searchlib/src/tests/queryeval/iterator_benchmark | |
parent | 10267c6347197b5e9731d0a1e9169d74608178f7 (diff) |
know the in-flow when sorting blueprints
also added the option and tagging mechanic needed to force selected
blueprints to be strict even in a non-strict context as well as
calculating how much time this saves you.
Diffstat (limited to 'searchlib/src/tests/queryeval/iterator_benchmark')
-rw-r--r-- | searchlib/src/tests/queryeval/iterator_benchmark/iterator_benchmark_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searchlib/src/tests/queryeval/iterator_benchmark/iterator_benchmark_test.cpp b/searchlib/src/tests/queryeval/iterator_benchmark/iterator_benchmark_test.cpp index 6747fed888c..bdc89363b22 100644 --- a/searchlib/src/tests/queryeval/iterator_benchmark/iterator_benchmark_test.cpp +++ b/searchlib/src/tests/queryeval/iterator_benchmark/iterator_benchmark_test.cpp @@ -342,7 +342,8 @@ non_strict_search(Blueprint& blueprint, MatchData& md, uint32_t docid_limit, dou BenchmarkResult benchmark_search(Blueprint::UP blueprint, uint32_t docid_limit, bool strict, double filter_hit_ratio) { - blueprint->sort(strict, true); + auto opts = Blueprint::Options::all(); + blueprint->sort(strict, opts); blueprint->fetchPostings(ExecuteInfo::createForTest(strict)); // Note: All blueprints get the same TermFieldMatchData instance. // This is OK as long as we don't do unpacking and only use 1 thread. |