1

I am confused when to call the Full index optimization in Lucene search.

I am using zend_search_lucene for it.

// Open existing index
$index = Zend_Search_Lucene::open('/data/my-index');

// Optimize index.
$index->optimize();

Should I call this function at the time of searching or should I call this after indexing?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Manojkumar
  • 1,351
  • 5
  • 35
  • 63

0 Answers0