This is an automated email from the ASF dual-hosted git repository.
kxiao 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 313ae23c [Fix] fix keyword type query is incorrect for CHAR(n) column
(#105)
313ae23c is described below
commit 313ae23c47ea6f73289e79364a259e404458ac7f
Author: zzzxl <[email protected]>
AuthorDate: Tue Jul 25 21:25:03 2023 +0800
[Fix] fix keyword type query is incorrect for CHAR(n) column (#105)
---
src/core/CLucene/index/SDocumentWriter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/CLucene/index/SDocumentWriter.cpp
b/src/core/CLucene/index/SDocumentWriter.cpp
index 33da7a67..e304999b 100644
--- a/src/core/CLucene/index/SDocumentWriter.cpp
+++ b/src/core/CLucene/index/SDocumentWriter.cpp
@@ -471,7 +471,7 @@ void
SDocumentsWriter<T>::ThreadState::FieldData::addPosition(Token *token) {
//int32_t downto = tokenTextLen;
int32_t upto = 0;
//while (downto > 0)
- while (upto < tokenTextLen)
+ while (upto < tokenTextLen && tokenText[upto] != CLUCENE_END_OF_WORD)
code = (code * 31) + tokenText[upto++];
uint32_t hashPos = code & postingsHashMask;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]