Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 98852 invoked from network); 6 Jul 2009 18:51:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 18:51:34 -0000 Received: (qmail 42732 invoked by uid 500); 6 Jul 2009 18:51:43 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 42652 invoked by uid 500); 6 Jul 2009 18:51:43 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 42644 invoked by uid 99); 6 Jul 2009 18:51:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 18:51:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 18:51:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7F69234C004 for ; Mon, 6 Jul 2009 11:51:14 -0700 (PDT) Message-ID: <1524521382.1246906274804.JavaMail.jira@brutus> Date: Mon, 6 Jul 2009 11:51:14 -0700 (PDT) From: "Tim Smith (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1721) IndexWriter to allow deletion by doc ids In-Reply-To: <62689159.1246259567228.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727695#action_12727695 ] Tim Smith commented on LUCENE-1721: ----------------------------------- That looks like its pretty close, and is definitely better than assuming the index changed, but still not "exactly" what would be desired (at least by me). looks IndexReader.reopen() will give a new IndexReader instance even if there are no "actual" changes to the index (deletes/new segments) in the event that some background merges were performed. This can result in a new IndexReader being opened (via reopen()) even if no content changed. (while this will be a more optimal search index, it will invalidate caches that will then need to be reloaded) a return status from commit would be more desirable such a status could list the number new documents, deleted documents, and new segments/merged segments, and so on That way, an application could choose what criteria would facilitate opening a new index (this is going even more off topic though) > 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@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org