Ajcody-Lucene-Topics
- This article is NOT official Zimbra documentation. It is a user contribution and may include unsupported customizations, references, suggestions, or information. |
Lucene
Actual Lucene Topics Homepage
Please see Ajcody-Lucene-Topics
Other References to Lucene Index
Please see:
Some General Questions On The Lucene Indexing
Q1. We know directory under index volume is the following:
- /opt/zimbra/index/ "X" / "Y" / index / "Z" /
We believe that "X" is the number which is got by bitshifting the mailbox_id to the right by 12 bits, then "Y" is maibox_id, however, how do you get "Z"?
- A. It's always '0'.
Q2. When is the directory for message data for an account(/opt/zimbra/store/0/...) created? When message is stored at first time, then it will not be created if message data does not exist, correct?
- A. Yes.
Q3. About index directory. We know index directory already exists even when mail data does not exist.
- When will index directory be created?
- When account's first login?
- A. It's created the first indexing or search.
Q4. Does lucene create delete flag when index is deleted?
- A. Yes.
Q5. If so, we believe that it creates only delete flag, and files having actual indesuch as segment file) will be deleted(reuse of disk space) only when segment is merged, or any function for optimization is called, is this correct?
- A. Yes.
Q6. The above behavior is the same when executing zmmailboxmove with purgeOld?
- A. No, it physically deletes the entire files.