From 2f6a34d2b45ad0292e8fcbae2a00bc6c6ff88819 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sat, 13 Nov 2021 12:28:55 +0100 Subject: [PATCH] Changes to inactive log messages and indents only --- src/query/plaintorich.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/query/plaintorich.cpp b/src/query/plaintorich.cpp index 2651f3d2..82d453d3 100644 --- a/src/query/plaintorich.cpp +++ b/src/query/plaintorich.cpp @@ -32,6 +32,8 @@ using std::pair; using std::set; using std::unordered_map; +// #define LOGGER_LOCAL_LOGINC 3 + #include "rcldb.h" #include "rclconfig.h" #include "log.h" @@ -83,12 +85,12 @@ public: } } - LOGDEB2("Input dumbbed term: '" << dumb << "' " << pos << " " << bts - << " " << bte << "\n"); + LOGDEB2("Input dumbbed term: '" << dumb << "' " << pos << " " << bts << " " << bte << "\n"); // If this word is a search term, remember its byte-offset span. map::const_iterator it = m_terms.find(dumb); if (it != m_terms.end()) { + LOGDEB1("search term [" << dumb << "] at bytepos(" << bts << ", " << bte << ")\n"); m_tboffs.push_back(GroupMatchEntry(bts, bte, it->second)); } @@ -97,8 +99,8 @@ public: // Term group (phrase/near) handling m_plists[dumb].push_back(pos); m_gpostobytes[pos] = pair(bts, bte); - LOGDEB2("Recorded bpos for " << pos << ": " << bts << " " << - bte << "\n"); + LOGDEB1("Group term [" << dumb << "] at pos " << pos << + " bytepos(" << bts << ", " << bte << ")\n"); } // Check for cancellation request @@ -135,8 +137,7 @@ private: bool TextSplitPTR::matchGroups() { for (unsigned int i = 0; i < m_hdata.index_term_groups.size(); i++) { - if (m_hdata.index_term_groups[i].kind != - HighlightData::TermGroup::TGK_TERM) { + if (m_hdata.index_term_groups[i].kind != HighlightData::TermGroup::TGK_TERM) { matchGroup(m_hdata, i, m_plists, m_gpostobytes, m_tboffs); } } @@ -184,7 +185,7 @@ bool PlainToRich::plaintorich( { Chrono chron; bool ret = true; - LOGDEB1("plaintorichich: in: [" << in << "]\n"); + LOGDEB1("plaintorich: hdata: [" << hdata.toString() << "] in: [" << in << "]\n"); m_hdata = &hdata; // Compute the positions for the query terms. We use the text splitter to break the text into