DIRECTORY SERVICES


Setting the view sort order
Unlike most databases, including extended Directory Catalogs, the condensed Directory Catalog (CDC) uses a unique design that combines multiple documents from IBM® Lotus® Domino™ directories into single documents. While document in most databases are possible through searches to sorted views, lookups to CDCs require entries to be ordered within documents in the same manner as the view's sort ordering.

To set both a CDC's view sort order and the ordering of the multiple entries in a document, set the desired sort order in the database's File - Application - Properties - Design "Default sort order" tab and run the Dircat task. End users must not change the default sort ordering of the CDC replicas themselves, since doing so will not have the desired effect (CDC entry intra-document ordering is fixed at the time of aggregation), and may return fewer than expected lookup results in response to a lookup.

If you have different sets of end users each wishing to have different sort orderings, you must create separate copies (not replicas) of the CDC with the desired sort orders. For example, if you have English, French, and Danish users who each want their CDC contents ordered according to their locale, you must create three separate copies of the CDC. The files should have their default sort order set respectively to Latin1, French, and Danish/Norwegian. It may be useful to establish a naming convention where the sort order appears in the CDC file names: CDC-EN.NSF, CDC-FR.NSF, and CDC-DK.NSF.

Extended Directory Catalogs are created using the same design the Domino Directory, and therefore contain views that have a Unicode sort ordering set by default so that directory searches yield consistent search results across Domino servers, even if those servers have different sort orderings. However, if you wish to use a CDC on a server, you must enable "Unicode standard sorting" on the design tab in the CDC's database properties.

When the Dircat task performs the initial build or full rebuild of a CDC, it stores the entries inside the CDC documents in accordance with the default sort order. If the default sort order is blank, the Dircat task will obtain a sort ordering from the Domino environment and explicitly set the CDC's default sort order with it. When the Dircat task updates a CDC, it first verifies the default sort order matches the ordering of entries in CDC documents. If it discovers discrepancies between the two orderings, the Dircat task will issue an event telling the administrator to use Dircat to perform a full rebuild.

See also