0

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

Manoj H
  • 145
  • 2
  • 12

1 Answers1

0

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.

Maerlyn
  • 33,687
  • 18
  • 94
  • 85
  • Hi but on index optimizaTION, I saw addition of disc space .... it is showing more memory consumption on calling optimization function. – Manoj H Jun 07 '12 at 15:46
  • This function optimises for faster searches, yes it needs quite some memory to do that. – Maerlyn Jun 07 '12 at 16:46