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

Uwe Schindler commented on LUCENE-3788:
---------------------------------------

Thanks,
by the way, I would be glad to see a good and working ParallelReader 
implementation together with your new Tee/Sink/...Codec that indexes to 
separate Directories. Mabye we get updateable indexed fields soon :-)

I have one hint (I remember you talks about parallel indexes at various 
conferences): IR no longer supports deletions (another cleanup); but as far as 
I remember the parallelReaders used IR.deleteDocument() to "hide" some 
documents and keep the indexes in sync (by adding deleted "fake" documents). 
The trick would be now, to use the new "feature" of ParallelXReader, which is 
to only look into the deletes of the *first* reader. So the "fake deleted" 
documents in the parallel readers can simply be ignored and stay undeleted, 
because the main index already has the deleted bits and PR returns those.

Please keep me informed, if the DR API is ok to implement the "fake" parts like 
IndexCommits or reopen() logic for Solr? I suspect that openIfChanged is 
horrible to do correct for parallel readers that change separately :-)
                
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to