zzzxl1993 commented on code in PR #33225: URL: https://github.com/apache/doris/pull/33225#discussion_r1549617912
########## be/src/olap/rowset/segment_v2/inverted_index_reader.cpp: ########## @@ -261,14 +263,23 @@ Status FullTextIndexReader::query(OlapReaderStatistics* stats, RuntimeState* run << search_str << "]"; try { - std::vector<std::string> analyse_result; + InvertedIndexQueryInfo query_info; InvertedIndexQueryCache::CacheKey cache_key; auto index_file_key = _inverted_index_file_reader->get_index_file_key(&_index_meta); if (query_type == InvertedIndexQueryType::MATCH_REGEXP_QUERY) { cache_key = {index_file_key, column_name, query_type, search_str}; - analyse_result.emplace_back(search_str); + query_info.terms.emplace_back(search_str); } else { + if (query_type == InvertedIndexQueryType::MATCH_PHRASE_QUERY) { + std::regex slopRegex(R"((.*[^ ])\s~(\d+)$)"); Review Comment: changed to not use regex -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org