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

Tim Smith commented on LUCENE-1721:
-----------------------------------

Looks like its actually a SegmentReader

old index:   org.apache.lucene.index.segmentrea...@f38cf0
new index: org.apache.lucene.index.segmentrea...@7bfc04

i guess that in 2.4, if you have an optimized index, and you call reopen(), you 
will always get a new SegmentReader instance (so the == check isn't really 
valid)
i guess this is a non-issue in 2.9 (opened index is never a SegmentReader, even 
in the optimized case)

> IndexWriter to allow deletion by doc ids
> ----------------------------------------
>
>                 Key: LUCENE-1721
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1721
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Shay Banon
>
> It would be great if IndexWriter would allow for deletion by doc ids as well. 
> It makes sense for cases where a "query" has been executed beforehand, and 
> later, that query needs to be applied in order to delete the matched 
> documents.
> More information here: 
> http://www.nabble.com/Delete-by-docId-in-IndexWriter-td24239930.html

-- 
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: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to