[
https://issues.apache.org/jira/browse/LUCENE-4918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13626442#comment-13626442
]
Simon Willnauer commented on LUCENE-4918:
-----------------------------------------
argh, I guess that was my fault. I will add a test and dig
> Highlighter closes the given IndexReader
> ----------------------------------------
>
> Key: LUCENE-4918
> URL: https://issues.apache.org/jira/browse/LUCENE-4918
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/highlighter
> Affects Versions: 4.2
> Reporter: Sirvan Yahyaei
> Assignee: Simon Willnauer
> Priority: Minor
> Fix For: 4.3
>
> Attachments: LuceneHighlighter.java
>
>
> If IndexReader is passed to o.a.l.s.highlight.QueryScorer for scoring,
> WeightedSpanTermExtractor#getWeightedSpanTermsWithScores closes the parameter
> reader (IndexReader) instead of closing the member variable 'reader'. To fix,
> line 519 of WeightedSpanTermExtractor should be changed from
> IOUtils.close(reader) to IOUtils.close(this.reader).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]