為屬性建立索引可改善搜尋演算法的效能。該程序檔用於索引屬性。如果您選擇索引屬性,程序檔不僅為 Calendar Server 增加索引,還為 Messaging Server 和 Communications Express 增加索引。因此,為一個產品執行了索引後,則無需再為其他產品重新執行索引。事實上,如果您嘗試對相同屬性再次執行索引,將不會發生任何變化。但是僅當索引尚未存在時,該程序檔才會呼叫 db2index 以便為每個屬性建立索引。
下表列出了目錄準備程序檔為其建立索引的所有屬性,並按字尾類別分組。該表還列出了為每個屬性建立的索引的類型。如需有關 Directory Server 索引建立的更多資訊,請參閱 http://docs.sun.com/coll/1316.1 和 http://docs.sun.com/coll/1419.1。
字尾 |
被建立索引的屬性 |
增加的索引類型 |
---|---|---|
使用者/群組 |
|
pres,eq,approx,sub |
mailAlternateAddress |
pres,eq,approx,sub |
|
mailEquivalentAddress |
pres,eq,approx,sub |
|
member |
eq |
|
cosspecifier |
pres |
|
使用者/群組 (用於 Access Manager – Schema 2) |
inetDomainBaseDN |
pres,eq |
sunPreferredDomain |
pres,eq |
|
associatedDomain |
pres,eq |
|
o |
pres,eq |
|
sunOrganizationAlias |
pres,eq |
|
DC 樹狀結構 (用於 Schema 1) |
inetDomainBaseDN |
pres,eq |
inetCanonicalDomainName |
pres,eq |
|
個人通訊錄 (PAB) |
memberOfManagedGroup |
pres,eq |
memberOfPAB |
pres,eq |
|
memberOfPABGroup |
pres,eq |
|
un |
eq |
|
icsCalendar |
pres,eq,approx,sub |
|
icsCalenarOwned |
pres,eq,approx,sub |
|
新的 PAB |
displayname |
pres,eq,sub |
MemberOfPiBook |
eq |
|
MemberofPiGroup |
eq |
如果您決定自己增加進一步索引,則可從 Directory Server 文件中找到有關增加索引的說明。