ZF-1565: Best practice section for Zend_Search_Lucene module
Description
Some 'best practice' recommendations may already be added to Zend_Search_Lucene module documentation.
Don't use 'id' for stored field names.
Some recommendations for MaxBufferedDocs, MaxMergeDocs and MergeFactor settings for different usage modes (indexing, searching, batch indexing, indexing small/large documents).
Shut down index before the end of script (unset index object), so auto-commit will be done before exception mechanism is shut down.
Comments
Posted by Alexander Veremyev (alexander) on 2007-06-14T15:28:52.000+0000
Posted by Alexander Veremyev (alexander) on 2007-06-19T16:45:59.000+0000
If documents have any unique-id field, then documents should be retrieved through $index->termDocs() method instead of $index->find()
If index is not optimized than each segment has his own term dictionary and preloaded term dictionary index. It also increases search time (each search is actually several mini-searches through segments)
Posted by Alexander Veremyev (alexander) on 2007-06-25T12:15:31.000+0000
Posted by Alexander Veremyev (alexander) on 2007-06-28T11:43:52.000+0000
Posted by Alexander Veremyev (alexander) on 2007-07-03T10:15:29.000+0000
Done.