Hi all. I'm having a problem with my search engine which is build on lucene. It's made of a crawler part and a search part. When the engine starts, it load the index and the search part is available. Then I start the crawl service which recreate the index. At the end, I recreate the IndexReader object. But it seems it doesn't "see" new indexed pages. Only if I shutdown and restart the engine it can see new pages ... Any idea ? Thanks !!!
Thanks for the answer, James. The code of my crawler seems like the one you've posted. The only difference is about delete before re-create. I cannot do the same: the search functionality must continues working during indexing so I cannot delete it before new index is complete. So I create new index using a temp dir. When it finish, the engine stop search , delete old index directory and move temp dir with new indexed page to old dir. Now I try to force a reload of webapp using Tomcat manager ... Thanks a lot. If you have any other idea, please let me know! Have a nice day. Alex
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad: