Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AADF47A3C for ; Wed, 14 Sep 2011 13:25:00 +0000 (UTC) Received: (qmail 68785 invoked by uid 500); 14 Sep 2011 13:24:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 68714 invoked by uid 500); 14 Sep 2011 13:24:57 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 68704 invoked by uid 99); 14 Sep 2011 13:24:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 13:24:57 +0000 X-ASF-Spam-Status: No, hits=4.8 required=5.0 tests=FROM_12LTRDOM,HTML_MESSAGE,SPF_PASS,TO_NO_BRKTS_DIRECT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.169.233.11] (HELO mailbck.lombardodier.ch) (80.169.233.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 13:24:49 +0000 To: java-user@lucene.apache.org MIME-Version: 1.0 X-KeepSent: AB58AADF:2C41A6A1-C125790B:004933FA; type=4; flags=0; name=$KeepSent From: v.sevel@lombardodier.com Subject: deleting with sorting and max document X-SendAsMailing: 1 Message-ID: Date: Wed, 14 Sep 2011 15:23:59 +0200 Content-Type: multipart/alternative; boundary="=_alternative 00499B73C125790B_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 00499B73C125790B_= Content-Type: text/plain; charset="US-ASCII" Hi, I have an index with 35 millions docs in it. every day I need to delete some of the oldest docs that meet some criteria. I can easily do this on the searcher by using search(Query query, int n, Sort sort) but there is nothing equivalent for the deleteDocuments. what are my options? thanks, vincent ************************ DISCLAIMER ************************ This message is intended only for use by the person to whom it is addressed. It may contain information that is privileged and confidential. Its content does not constitute a formal commitment by Lombard Odier Darier Hentsch & Cie or any of its branches or affiliates. If you are not the intended recipient of this message, kindly notify the sender immediately and destroy this message. Thank You. ***************************************************************** --=_alternative 00499B73C125790B_=--