lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6884) Analyzer.tokenStream() shouldn't throw IOException
Date Thu, 05 Nov 2015 10:28:27 GMT

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

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

Commit 1712735 from [~romseygeek] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1712735 ]

LUCENE-6884: Analyzer.tokenStream() and Tokenizer.setReader() don't need to throw IOException

> Analyzer.tokenStream() shouldn't throw IOException
> --------------------------------------------------
>
>                 Key: LUCENE-6884
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6884
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-6884.patch
>
>
> I'm guessing that in the past, calling Analyzer.tokenStream() would call TokenStream.reset()
somewhere downstream, meaning that we had to deal with IOExceptions.  However, tokenstreams
are created entirely lazily now, so this is unnecessary.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message