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 5C0EFDF95 for ; Wed, 6 Mar 2013 00:23:28 +0000 (UTC) Received: (qmail 637 invoked by uid 500); 6 Mar 2013 00:23:26 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 594 invoked by uid 500); 6 Mar 2013 00:23:26 -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 586 invoked by uid 99); 6 Mar 2013 00:23:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 00:23:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of need4spd@gmail.com designates 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pb0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 00:23:19 +0000 Received: by mail-pb0-f44.google.com with SMTP id wz12so5199026pbc.17 for ; Tue, 05 Mar 2013 16:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:references:from:content-type:x-mailer :in-reply-to:message-id:date:to:content-transfer-encoding :mime-version; bh=yP3bZpN3u6yAsvFwsKmGiUtqRVEsxMMAFac8U0R3SZ0=; b=ewqqAcX8EtL2EPDWmQ//TIJ2PR0OWCc188IHWS27YCVUpFQvZmXNC0zdeQ6t4WDvg9 4jlj6wjg77PNePVp3sTaLbySGngEf1Gj9o4CzKK0vMzazP26HSnsCchAhIEq+DxrcuJm 5oZxCP5LlpRHpfLsG+ylCnjOqcohfMok1HZzN4p+M8xheO95b1Wpj98tnv5ITQxLXrec z0jeQI0cO32XhatyvNkvHcA3l8s5hYXOxome/JfkS/n1MhIBoCvn7VtkKiyusGdf2FCm l+lkt11Z90po3YBYyUm5itIccghelP8B7ET0C7VX/UvbRGWxYVPdo8cK+3Wzf9BgDEBj Q7TA== X-Received: by 10.68.28.194 with SMTP id d2mr40565746pbh.215.1362529378547; Tue, 05 Mar 2013 16:22:58 -0800 (PST) Received: from [10.16.61.141] ([223.62.160.154]) by mx.google.com with ESMTPS id c8sm28770838pbq.10.2013.03.05.16.22.56 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Mar 2013 16:22:57 -0800 (PST) Subject: Re: Bulk indexing and delete old index files References: From: =?euc-kr?B?wOW/67yu?= Content-Type: text/plain; charset=euc-kr X-Mailer: iPhone Mail (10B146) In-Reply-To: Message-Id: <54630F10-7979-4512-866C-7EEC4591D772@gmail.com> Date: Wed, 6 Mar 2013 09:22:53 +0900 To: "java-user@lucene.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org thanks! it's very helpful advice for me =B3=AA=C0=C7 iPhone=BF=A1=BC=AD =BA=B8=B3=BF 2013. 3. 5. =BF=C0=C8=C4 10:14 Erick Erickson =C0=DB= =BC=BA: > If you kept an "indexed_time" field, you could always just index > to the same instance and then do a delete by query, something like > timestamp:[* TO NOW/DAY], > commit and go. That would delete everything indexed before midnight. > last night (NOW/DAY rounds down). >=20 > Note, most of this would be already replaced if your new documents > had the same value as the old ones, then the old ones > would be automatically replaced. >=20 > Best > Erick >=20 >=20 > On Tue, Mar 5, 2013 at 12:10 AM, =C0=E5=BF=EB=BC=AE w= rote: >=20 >> Hi. >>=20 >> I want indexing all documents once a day and after indexing delete old >> index files that indexed before a day. >>=20 >> I think to do this, indexing all documents in new directory and replace >> IndexSearcher and IndexWriter with olds, and delete old index directory. >>=20 >> Is there more good indexing strategy? >>=20 >> Thanks.! >>=20 >> -- >> DEV=BF=EB=BD=C4 >> http://devyongsik.tistory.com >>=20 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org