This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch clucene-2.0
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/clucene-2.0 by this push:
new 4a6234d016 [fix](invert index) Fixed compatibility issues with tii tis
(#206)
4a6234d016 is described below
commit 4a6234d0167679aaeb89088eed1df2678fb8db07
Author: zzzxl <[email protected]>
AuthorDate: Fri Mar 22 01:24:55 2024 +0800
[fix](invert index) Fixed compatibility issues with tii tis (#206)
---
src/core/CLucene/index/SegmentTermEnum.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/core/CLucene/index/SegmentTermEnum.cpp
b/src/core/CLucene/index/SegmentTermEnum.cpp
index 8179c7b780..fc60fe9312 100644
--- a/src/core/CLucene/index/SegmentTermEnum.cpp
+++ b/src/core/CLucene/index/SegmentTermEnum.cpp
@@ -57,7 +57,14 @@ void SegmentTermEnum::init(int32_t in_format) {
format = firstInt;
// check that it is a format we can understand
- if (format < TermInfosWriter::FORMAT) {
+ // if (format < TermInfosWriter::FORMAT) {
+ // TCHAR err[30];
+ // _sntprintf(err, 30, _T("Unknown format version: %d"), format);
+ // _CLTHROWT(CL_ERR_CorruptIndex, err);
+ // }
+
+ // Able to parse versions -3 and -4
+ if (format < -4) {
TCHAR err[30];
_sntprintf(err, 30, _T("Unknown format version: %d"), format);
_CLTHROWT(CL_ERR_CorruptIndex, err);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]