From 0d0c3108f6160bfd855db551dee161892b5c68a6 Mon Sep 17 00:00:00 2001 From: wraymo Date: Tue, 14 May 2024 16:03:06 -0400 Subject: [PATCH] do not add implicit wildcard character "*" at the beginning and the end of a query --- components/core/src/clp_s/search/Output.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/components/core/src/clp_s/search/Output.cpp b/components/core/src/clp_s/search/Output.cpp index 6863bba35..2d6a377e5 100644 --- a/components/core/src/clp_s/search/Output.cpp +++ b/components/core/src/clp_s/search/Output.cpp @@ -888,23 +888,7 @@ void Output::populate_string_queries(std::shared_ptr const& expr) { // search on log type dictionary Query& q = m_string_query_map[query_string]; - if (query_string.find("*") != std::string::npos - || filter->get_column()->matches_type(LiteralType::VarStringT)) - { - // if it matches VarStringT then it contains no space, so we - // don't't add more wildcards. Likewise if it already contains some wildcards - // we do not add more - Grep::process_raw_query( - m_log_dict, - m_var_dict, - query_string, - m_ignore_case, - q, - false - ); - } else { - Grep::process_raw_query(m_log_dict, m_var_dict, query_string, m_ignore_case, q); - } + Grep::process_raw_query(m_log_dict, m_var_dict, query_string, m_ignore_case, q, false); } SubQuery sub_query; if (filter->get_column()->matches_type(LiteralType::VarStringT)) {