airborne12 commented on code in PR #58:
URL: https://github.com/apache/doris-thirdparty/pull/58#discussion_r1173423743


##########
src/core/CLucene/analysis/Analyzers.cpp:
##########
@@ -38,23 +38,20 @@ Token *CharTokenizer<char>::next(Token *token) {
                 return NULL;
         } else
             c = ioBuffer[bufferIndex++];
-        if (isTokenChar(c)) {// if it's a token TCHAR
+        if (is_alnum(c)) {// if it's a token TCHAR
 
             if (length == 0)// start of token
                 start = offset - 1;
 
-            //buffer[length++] = normalize(c);          // buffer it, 
normalized
-            buffer[length++] = c;
+            buffer[length++] = to_lower(c);          // buffer it, normalized

Review Comment:
   same as isTokenchar's problem



##########
src/core/CLucene/analysis/Analyzers.cpp:
##########
@@ -38,23 +38,20 @@ Token *CharTokenizer<char>::next(Token *token) {
                 return NULL;
         } else
             c = ioBuffer[bufferIndex++];
-        if (isTokenChar(c)) {// if it's a token TCHAR

Review Comment:
   change isTokenChar to is_alnum will change other tokenizer's behavior



-- 
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

Reply via email to