[ 
https://issues.apache.org/jira/browse/LUCENE-4918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sirvan Yahyaei updated LUCENE-4918:
-----------------------------------

    Attachment: LuceneHighlighter.java

I have attached a simple class to show the issue.
                
> 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
>
>         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]

Reply via email to