diff options
author | Håvard Pettersen <havardpe@oath.com> | 2017-09-07 12:26:22 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2017-09-20 09:16:17 +0000 |
commit | 07145ad5ee9cc0f6d1bef0c76fd93a1053d9dde2 (patch) | |
tree | 8d3a391aef94fd7d8010820fb7f4f7947f97b660 /searchcore/src/tests/proton/matching | |
parent | f1018cb802aeb7b7731a0fc29ee7c708b665148d (diff) |
enable re-using termwise bitvectors in second phase
detach match data from rank program and refactor match loop
re-use bitvector in termwise search if range is the same
Diffstat (limited to 'searchcore/src/tests/proton/matching')
-rw-r--r-- | searchcore/src/tests/proton/matching/matching_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp index fefc6f361a9..261827a1e06 100644 --- a/searchcore/src/tests/proton/matching/matching_test.cpp +++ b/searchcore/src/tests/proton/matching/matching_test.cpp @@ -292,8 +292,8 @@ struct MyWorld { MatchToolsFactory::UP match_tools_factory = matcher->create_match_tools_factory( *request, searchContext, attributeContext, metaStore, overrides); MatchTools::UP match_tools = match_tools_factory->createMatchTools(); - RankProgram::UP rank_program = match_tools->first_phase_program(); - return rank_program->match_data().get_termwise_limit(); + match_tools->setup_first_phase(); + return match_tools->match_data().get_termwise_limit(); } SearchReply::UP performSearch(SearchRequest::SP req, size_t threads) { |