You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (Updated) (JIRA)" <ji...@apache.org> on 2012/02/15 11:34:59 UTC

[jira] [Updated] (LUCENE-3788) Separate getting Directory from IndexReader from its concrete subclasses

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

Andrzej Bialecki  updated LUCENE-3788:
--------------------------------------

    Attachment: LUCENE-3788.patch

Initial patch. Following this we may need to change the way how Solr uses IndexReaderFactory and use DirectoryBased.directory() to obtain references to underlying Directory instead of relying on IR being a subclass of DirectoryReader.
                
> Separate getting Directory from IndexReader from its concrete subclasses
> ------------------------------------------------------------------------
>
>                 Key: LUCENE-3788
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3788
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Andrzej Bialecki 
>         Attachments: LUCENE-3788.patch
>
>
> Currently only subclasses of DirectoryReader expose the underlying Directory via public final directory(). IMHO this aspect should be separated from DirectoryReader so that other IndexReader implementations could expose any underlying Directory if they wanted to. Specifically, I have a use case where I'd like to expose a synthetic Directory view of resources used for ParallelCompositeReader.

--
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