zzzxl1993 commented on code in PR #245: URL: https://github.com/apache/doris-thirdparty/pull/245#discussion_r1827544734
########## src/core/CLucene/index/TermInfosWriter.cpp: ########## @@ -85,6 +87,16 @@ void STermInfosWriter<T>::add(STerm<T> *term, TermInfo *ti) { add(fieldInfos->fieldNumber(term->field()), termTextBuffer.values, length, ti); } +template <typename T> +void STermInfosWriter<T>::add(const TCHAR* field, const T* text, size_t length, TermInfo* ti) { + if (termTextBuffer.values == nullptr || termTextBuffer.length < length) { + termTextBuffer.resize((int32_t)(length * 1.25)); Review Comment: Because in the above function void STermInfosWriter<T>::add(STerm<T> *term, TermInfo *ti), it uses 1.25. -- 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