You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2013/04/09 12:10:16 UTC

[jira] [Assigned] (LUCENE-4918) Highlighter closes the given IndexReader

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

Simon Willnauer reassigned LUCENE-4918:
---------------------------------------

    Assignee: Simon Willnauer
    
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org