[ 
https://issues.apache.org/jira/browse/LUCENE-10081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410399#comment-17410399
 ] 

ASF subversion and git services commented on LUCENE-10081:
----------------------------------------------------------

Commit 4df8d641aceb749d9f3a56fa194e334213953bc4 in lucene's branch 
refs/heads/main from Jim Ferenczi
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=4df8d64 ]

LUCENE-10081: KoreanTokenizer should check the max backtrace gap on whitespaces 
(#272)

This change ensures that we don't skip consecutive whitespaces without checking 
the maximum backtrace gap.

> KoreanTokenizer should check the max backtrace gap on whitespaces
> -----------------------------------------------------------------
>
>                 Key: LUCENE-10081
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10081
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Jim Ferenczi
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Today the KoreanTokenizer keeps track of the whitespaces that appear before a 
> known term in order to apply a space penalty factor. These whitespaces are 
> considered part of the next term so the backtrace gap limit is not applied. 
> As a result, the position buffer can grow up to the maximum number of 
> consecutive whitespaces in the input. This is problematic since the buffer is 
> reused on reset() so we should ensure that the max backtrace gap limit is 
> applied on consecutive whitespaces consistently.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to