Zend Framework

Best practice section for Zend_Search_Lucene module

Details

  • Type: Docs: Task Docs: Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.0 RC2
  • Fix Version/s: 1.5.0
  • Component/s: Zend_Search_Lucene
  • Labels:
    None
  • Language:
    English

Description

Some 'best practice' recommendations may already be added to Zend_Search_Lucene module documentation.

1. Don't use 'id' for stored field names.

2. Some recommendations for MaxBufferedDocs, MaxMergeDocs and MergeFactor settings for different usage modes (indexing, searching, batch indexing, indexing small/large documents).

3. Shut down index before the end of script (unset index object), so auto-commit will be done before exception mechanism is shut down.

Activity

Hide
Alexander Veremyev added a comment -

4. Do not use index on NFS (see flock() documentation).

Show
Alexander Veremyev added a comment - 4. Do not use index on NFS (see flock() documentation).
Hide
Alexander Veremyev added a comment -

5. If documents have any unique-id field, then documents should be retrieved through $index->termDocs() method instead of $index->find()

6. 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)

Show
Alexander Veremyev added a comment - 5. If documents have any unique-id field, then documents should be retrieved through $index->termDocs() method instead of $index->find() 6. 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)
Hide
Alexander Veremyev added a comment -

7. Encoding parameters usage.

Show
Alexander Veremyev added a comment - 7. Encoding parameters usage.
Hide
Alexander Veremyev added a comment -

8. Index maintenance (backup and restoring).

Show
Alexander Veremyev added a comment - 8. Index maintenance (backup and restoring).
Hide
Alexander Veremyev added a comment -

Done.

Show
Alexander Veremyev added a comment - Done.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: