qidaye commented on code in PR #152: URL: https://github.com/apache/doris-thirdparty/pull/152#discussion_r1429154853
########## src/core/CLucene/index/IndexWriter.cpp: ########## @@ -1618,11 +1606,25 @@ void IndexWriter::mergeTerms(bool hasProx) { match[matchSize++] = queue->pop(); Term *smallestTerm = match[0]->term; - // std::wstring ws = smallestTerm->text(); - // std::string name = std::string(ws.begin(), ws.end()); - // std::cout << name << std::endl; - SegmentMergeInfo *top = queue->top(); + if (infoStream != nullptr) { + std::wstring ws = smallestTerm->text(); + std::wstring f = smallestTerm->field(); + std::string name = std::string(ws.begin(), ws.end()); + std::string field = std::string(f.begin(), f.end()); + message("smallestTerm name: " + name); + message("smallestTerm field: " + field); + + if (top != nullptr) { + Term* topTerm = top->term; Review Comment: infoStream is null by default. It's a common use in CLucene for debug. There is not a performance issue. -- 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: dev-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org