You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Nguyen Minh Gia Huy (Jira)" <ji...@apache.org> on 2020/10/28 08:02:00 UTC
[jira] [Created] (LUCENE-9588) Exceptions handling in methods of
SegmentingTokenizerBase
Nguyen Minh Gia Huy created LUCENE-9588:
-------------------------------------------
Summary: Exceptions handling in methods of SegmentingTokenizerBase
Key: LUCENE-9588
URL: https://issues.apache.org/jira/browse/LUCENE-9588
Project: Lucene - Core
Issue Type: Improvement
Components: modules/analysis
Affects Versions: 8.6.3
Reporter: Nguyen Minh Gia Huy
The current interface of *setNextSentence* and *i**ncrementWord* methods in *SegmentingTokenizerBase* do not define the checked exceptions, which makes it troublesome to be inherited.
For example, if we override the _incrementWord_ with a logic that invoke _incrementToken_ on another token filter, the _incrementToken_ raises the _IOException_ but the _incrementWord_ is not defined to handle it.
I think having _setNextSentence_ and _incrementWord_ handle the IOException would make the *SegmentingTokenizerBase* easier to be used.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org