From 132d212c6c86bee702c019200d551de2a2345b47 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Tue, 1 Oct 2024 13:58:47 +0200 Subject: [PATCH] Preserve weights for prefix and range searches. --- .../src/vespa/searchlib/attribute/postinglistsearchcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp b/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp index ec5e4ea1da5b..88ddec8b7c46 100644 --- a/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp +++ b/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp @@ -9,7 +9,7 @@ namespace search::attribute { using vespalib::btree::BTreeNode; -bool PostingListSearchContext::_preserve_weight = false; +bool PostingListSearchContext::_preserve_weight = true; PostingListSearchContext:: PostingListSearchContext(const IEnumStoreDictionary& dictionary, bool has_btree_dictionary, uint32_t docIdLimit,