This is an automated email from the ASF dual-hosted git repository.
eldenmoon pushed a commit to branch clucene
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/clucene by this push:
new af30f759e2c [fix](inverted index) Add position compression limit (#324)
af30f759e2c is described below
commit af30f759e2caee2d37df0bbf05d20d21c689c165
Author: zzzxl <[email protected]>
AuthorDate: Fri Jul 4 15:26:19 2025 +0800
[fix](inverted index) Add position compression limit (#324)
---
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 06bfc437407..44b4492df7f 100644
--- a/src/core/CLucene/index/IndexWriter.cpp
+++ b/src/core/CLucene/index/IndexWriter.cpp
@@ -1938,7 +1938,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]