lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Bulk indexing and delete old index files
Date Tue, 05 Mar 2013 13:14:14 GMT
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
<delete><query>timestamp:[* TO NOW/DAY]</query></delete>,
commit and go. That would delete everything indexed before midnight.
last night (NOW/DAY rounds down).

Note, most of this would be already replaced if your new documents
had the same <uniqueKey> value as the old ones, then the old ones
would be automatically replaced.


On Tue, Mar 5, 2013 at 12:10 AM, 장용석 <> wrote:

> Hi.
> I want indexing all documents once a day and after indexing delete old
> index files that indexed before a day.
> I think to do this, indexing all documents in new directory and replace
> IndexSearcher and IndexWriter with olds, and delete old index directory.
> Is there more good indexing strategy?
> Thanks.!
> --
> DEV용식

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message