I'm just starting to use Zend_Search_Lucene to build a new search engine for my site and in order to improve search speed the Lucene Mailing lists said that I need to make sure that I am not opening an IndexReader for each search, but rather leaving it open. I was told that the first few queries through the system are slower as the caches are built up. Does Zend keep track of the index in the background to keep speed up? Or do I need to be using sessions or some other tactic to keep the index open for all users on my site to further speed searches? I don't see anything in the Zend_Search_Lucene documentation about keeping indexes open, and all the examples seem to open at the beginning of each script. I also don't see anything about this in the "Best Practices" section of the Zend Lucene manual. What should I be looking into to make sure that I'm getting the best speed out of my searches as possible?
