Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top