[ https://issues.apache.org/jira/browse/LUCENE-4918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer resolved LUCENE-4918. ------------------------------------- Resolution: Fixed committed thanks! > 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, 4.2.1 > Reporter: Sirvan Yahyaei > Assignee: Simon Willnauer > Priority: Minor > Fix For: 5.0, 4.3 > > Attachments: LUCENE-4918.patch, 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org