This is an automated email from the ASF dual-hosted git repository.
eldenmoon pushed a commit to branch clucene-3.1
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/clucene-3.1 by this push:
new 4f5449c9037 [fix](inverted index) Add position compression limit (#325)
4f5449c9037 is described below
commit 4f5449c903778fae32884586c728587c24a58806
Author: zzzxl <[email protected]>
AuthorDate: Fri Jul 4 15:26:30 2025 +0800
[fix](inverted index) Add position compression limit (#325)
---
src/core/CLucene/index/IndexWriter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/CLucene/index/IndexWriter.cpp
b/src/core/CLucene/index/IndexWriter.cpp
index fd099731a6f..7ba9d64ae93 100644
--- a/src/core/CLucene/index/IndexWriter.cpp
+++ b/src/core/CLucene/index/IndexWriter.cpp
@@ -1877,7 +1877,7 @@ void IndexWriter::mergeTerms(bool hasProx, IndexVersion
indexVersion) {
}
docDeltaBuffer.resize(0);
freqBuffer.resize(0);
- if (indexVersion >= IndexVersion::kV2) {
+ if (hasProx && indexVersion >= IndexVersion::kV2) {
PforUtil::encodePos(proxOutput, posBuffer);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]