[
https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Willnauer updated LUCENE-4046:
------------------------------------
Attachment: LUCENE-4046.patch
here is a patch adding IOException to DocsEnum#freq()
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Assignee: Simon Willnauer
> Labels: codec, index
> Fix For: 4.0
>
> Attachments: LUCENE-4046.patch
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if
> somebody wants to implement a codec that allows lazy loading of freq.
> Frequency will be read and decoded only when #freq() will be called,
> therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it
> (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]