I created a task in scheduled task to update my lucene index. Everything is going well until I searched in my lucene and the task to update the index run at the same time.
My Code in Lucene is to delete the old index and create a new one, I know that it needs the former file in order to search, but when I put IndexWriter
Property create to false
, it works, but the index file folder seems to create more "files/index" and the index search list contains the two or three of the same indexed "term".
Is their a way to append it and exclude the previous indexed terms in the update? Because I'm having a hard time to understand the Update Method of Lucene.