Creating Indexes

Equality, approximate, and substring indexes for cn (common name) and sn (surname) attributes.

Equality and substring indexes for the telephone number attribute.

Substring indexes for the description attribute.

When adding that entry to the directory, the Directory Server must perform these steps:

1.Create the cn equality index entry for John and John Doe.

2.Create the appropriate cn approximate index entries for John and John Doe.

3.Create the appropriate cn substring index entries for John and John Doe.

4.Create the sn equality index entry for Doe.

5.Create the appropriate sn approximate index entry for Doe.

6.Create the appropriate sn substring index entries for Doe.

7.Create the telephone number equality index entry for 408 555 8834.

8.Create the appropriate telephone number substring index entries for 408 555 8834.

9.Create the appropriate description substring index entries for Manufacturing lead for the Z238 line of widgets. A large number of substring entries are generated for this string.

As this example shows, the number of actions required to create and maintain databases for a large directory can be resource-intensive.

2. Creating Indexes

This section describes how to create presence, equality, approximate, substring, and international indexes for specific attributes using the Directory Server Console and the command-line.

NOTE

Because Directory Server 8.0 can operate in either a single or multi-database environment, remember to create new indexes in every database instance since newly-created indexes are not automatically created in the other databases. However, the same is not true for default indexes because they are automatically present and maintained in subsequent database instances but not added to existing ones. In other words, the directory uses the most recently-created set of default indexes in subsequent databases. This means that if you add a default

371

Page 391
Image 391
HP UX Red Hat Direry Server Software manual Creating Indexes