Hi Ray, As far as reindexing everything goes, you may find the following URL helpful: http://wiki.apache.org/lucene-java/LuceneFAQ#How_do_I_update_a_document_ or_a_set_of_documents_that_are_already_indexed.3F
You do not need to reindex everything unless all documents (in Lucene) have been modified. If you want to add new documents to an existing Lucene index you can simply create an IndexWriter for an existing Lucene index and add documents as you would in the original indexing. Whether or not this is the "correct" way to do things depends on your situation. How large is your index? How much new information is being indexed during each batch? Does your index see periods of heavy traffic and light traffic? Batch updates to a Lucene index are not a problem, especially if you are adding large chunks of information and you can do this during times where the index does not have a large amount of traffic. Jason -----Original Message----- From: raygrrr [mailto:[email protected]] Sent: Friday, July 29, 2011 5:43 AM To: [email protected] Subject: indexing question, please have a look :) Hi experts, I use lucene to only index file's last updated date and path, as normally I just need to check what files have been modifed/added from a date range. so I am planning to do indexing daily - but I am wondering whether there is a better way for indexing as everytime when I do indexing I need to do it for all the files again, is that the correct way to do indexing? I hope my question make sense :) Many thanks, Ray -- View this message in context: http://lucene.472066.n3.nabble.com/indexing-question-please-have-a-look- tp3209149p3209149.html Sent from the Lucene - General mailing list archive at Nabble.com.
