From 0c1a3f857b41d207f006a91fd1ab5476123a4089 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 24 Jan 2024 21:24:15 +0100 Subject: Use max value for words in UTF8FlexibleStringFieldSearcher::matchTerms(). --- .../src/vespa/vsm/searcher/utf8flexiblestringfieldsearcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/streamingvisitors/src/vespa/vsm/searcher/utf8flexiblestringfieldsearcher.cpp b/streamingvisitors/src/vespa/vsm/searcher/utf8flexiblestringfieldsearcher.cpp index 5f626ccb962..4a8e7a43475 100644 --- a/streamingvisitors/src/vespa/vsm/searcher/utf8flexiblestringfieldsearcher.cpp +++ b/streamingvisitors/src/vespa/vsm/searcher/utf8flexiblestringfieldsearcher.cpp @@ -2,6 +2,7 @@ #include "utf8flexiblestringfieldsearcher.h" #include #include +#include #include #include @@ -24,7 +25,7 @@ UTF8FlexibleStringFieldSearcher::matchTerms(const FieldRef & f, const size_t min (void) mintsz; size_t words = 0; for (auto qt : _qtl) { - words = matchTerm(f, *qt); + words = std::max(words, matchTerm(f, *qt)); } return words; } -- cgit v1.2.3