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 (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/14 15:12:52 UTC

[jira] [Issue Comment Edited] (LUCENE-3571) nuke IndexSearcher(directory)

    [ https://issues.apache.org/jira/browse/LUCENE-3571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149634#comment-13149634 ] 

Simon Willnauer edited comment on LUCENE-3571 at 11/14/11 2:12 PM:
-------------------------------------------------------------------

+1 - actually I think we should deprecate this ctor in 3.x - nobody should use that really
                
      was (Author: simonw):
    +1
                  
> nuke IndexSearcher(directory)
> -----------------------------
>
>                 Key: LUCENE-3571
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3571
>             Project: Lucene - Java
>          Issue Type: Task
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3571.patch
>
>
> IndexSearcher is supposed to be a cheap wrapper around a reader,
> but sometimes it is, sometimes it isn't.
> I think its confusing tangling of a heavyweight and lightweight
> object that it sometimes 'houses' a reader and must close it in that case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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