Sirvan Yahyaei created LUCENE-4918: -------------------------------------- Summary: 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 Priority: Minor Fix For: 4.3
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