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

Jason Rutherglen commented on LUCENE-1476:
------------------------------------------

It would be great if instead of relying on Lucene to manage the deletedDocs 
file, the API would be pluggable enough such that a DocIdBitSet (DocIdSet with 
random access) could be set in a SegmentReader, and the file access (reading 
and writing) could be managed from outside.  Of course this is difficult to do 
and still make things backwards compatible, however for 3.0 I would *really* 
like to be a part of efforts to create a completely generic and pluggable API 
that is cleanly separated from the underlying index format and files.  This 
would mean that the analyzing, querying, scoring portions of Lucene could 
access an IndexReader like pluggable class where the underlying index files, 
when and how the index files are written to disk is completely separated.  

One motivation for this patch is to allow custom queries access to the 
deletedDocs in a clean way (meaning not needing to be a part of the o.a.l.s. 
package) 

I am wondering if it is good to try to get IndexReader.clone working again, or 
if there is some other better way related to this patch to externally manage 
the deletedDocs.  

Improving the performance of deletedDocs would help for every query so it's 
worth looking at.  

> BitVector implement DocIdSet
> ----------------------------
>
>                 Key: LUCENE-1476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1476
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.4
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>         Attachments: LUCENE-1476.patch
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> BitVector can implement DocIdSet.  This is for making 
> SegmentReader.deletedDocs pluggable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to