Re: Bulk indexing and delete old index files

2013-12-03 Thread 장용석
Hi, I did it with Erick's solution. I did mark index file versions to all documents and delete old documents before index new documents. If documents are just update or add, you can use 'automatically replaced' strategy with document's unique key. Thanks. 2013/12/2 revolutionizeit > Did you ge

Re: Bulk indexing and delete old index files

2013-12-01 Thread revolutionizeit
Did you get this working? Are you able to share the solution? I am looking for a solution to similar problem. Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/Bulk-indexing-and-delete-old-index-files-tp4044746p4104297.html Sent from the Lucene - Java User

Re: Bulk indexing and delete old index files

2013-03-05 Thread 장용석
thanks! it's very helpful advice for me 나의 iPhone에서 보냄 2013. 3. 5. 오후 10:14 Erick Erickson 작성: > 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 e

Re: Bulk indexing and delete old index files

2013-03-05 Thread Erick Erickson
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). Note, most of this would be already r

Re: Bulk indexing and delete old index files

2013-03-05 Thread Ian Lea
That sounds fine. Or just open an IndexWriter with create/overwrite/whatever-it-is set to true. There's rarely a clear best strategy. Do the simplest thing that could possibly work: http://www.xprogramming.com/Practices/PracSimplest.html -- Ian. On Tue, Mar 5, 2013 at 5:10 AM, 장용석 wrote: > Hi.