summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute
diff options
context:
space:
mode:
authorTor Egge <tegge@vespa.ai>2024-01-18 12:57:17 +0100
committerGitHub <noreply@github.com>2024-01-18 12:57:17 +0100
commit1f65f322a8d0f67e83129888b873a241c243a851 (patch)
treee0fb32aee4627d44823a756123caf63c70db03d0 /searchlib/src/tests/attribute
parent5f5066055c2fbdf57f3126f2c39a62ac02f01f10 (diff)
parenta8476292a061bf609e24e2731202b634bba46b95 (diff)
Merge pull request #29964 from vespa-engine/vekterli/use-string-view-for-non-dict-match
Use `string_view` for standalone DFA fuzzy match function
Diffstat (limited to 'searchlib/src/tests/attribute')
-rw-r--r--searchlib/src/tests/attribute/dfa_fuzzy_matcher/dfa_fuzzy_matcher_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/attribute/dfa_fuzzy_matcher/dfa_fuzzy_matcher_test.cpp b/searchlib/src/tests/attribute/dfa_fuzzy_matcher/dfa_fuzzy_matcher_test.cpp
index 433ad9e7671..8ba8c62c5ff 100644
--- a/searchlib/src/tests/attribute/dfa_fuzzy_matcher/dfa_fuzzy_matcher_test.cpp
+++ b/searchlib/src/tests/attribute/dfa_fuzzy_matcher/dfa_fuzzy_matcher_test.cpp
@@ -197,7 +197,7 @@ dfa_fuzzy_match_in_dictionary_no_skip(std::string_view target, const StringEnumS
size_t seeks = 0;
for (;itr.valid(); ++itr) {
auto word = store.get_value(itr.getKey().load_relaxed());
- if (matcher.is_match(word)) {
+ if (matcher.is_match(std::string_view(word))) {
++matches;
if (collect_matches) {
matched_words.push_back(word);