« Return to Thread: [jira] Created: (LUCENE-1721) IndexWriter to allow deletion by doc ids

[jira] Commented: (LUCENE-1721) IndexWriter to allow deletion by doc ids

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View in Thread


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

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

One thing that would be nice to see is a boolean return value from "deleteByTerm" that would indicate if any documents will actually be deleted (or even more, the count of docs that would be deleted)

This would allow an application to perform more optimal commits/optimizes. If the index only receives deletes that do not match the index, the application can be aware of this and prevent performing a commit (thereby removing the need for application specific cache loading/analytics/etc performed after a "noop" commit).  This is extremely useful in the event where TONS of deletes will be received, but very few updates with frequent commit intervals

obviously, this is rather impractical as this would require opening a SegmentReader for each and every segment for each delete given the current implementation of handling deletes (causing this special delete to be extremely slow)

> 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-unsubscribe@...
For additional commands, e-mail: java-dev-help@...

 « Return to Thread: [jira] Created: (LUCENE-1721) IndexWriter to allow deletion by doc ids