I am using zend_search_lucene for indexing documents and I am in dilemma on calling optimize function.
Please let me know if optimize function is to be called after indexing or while searching.
Thanks
I am using zend_search_lucene for indexing documents and I am in dilemma on calling optimize function.
Please let me know if optimize function is to be called after indexing or while searching.
Thanks
You need not call it that often. Depending on how fast your index changes, you can call it every few hours or days. I usually have a once-a-day cronjob that does index optimizing.