HP-UX Directory Server 8.1 administrator guide
As this example shows, the number of actions required to create and maintain databases for a
large directory can be resource-intensive.
11.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.1 can operate in either a single or multidatabase environment,
remember to create new indexes in every database instance because 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 index to your
second database instance, it will not be maintained in your first database instance but will be
maintained in any subsequent instances.
NOTE:
The procedure for creating browsing indexes is different than for creating other index types; that
procedure is covered in “Creating browsing indexes from the server console”.
• “Creating indexes from the server console”
• “Creating indexes from the command line”
• “Using a cn=tasks entry to create an index”
• “Creating browsing indexes from the server console”
• “Creating browsing indexes from the command line”
11.2.1 Creating indexes from the server console
This section describes how to create presence, equality, approximate, substring, and international
indexes for specific attributes using the Directory Server Console.
To create any of these indexes:
1. Select the Configuration tab.
2. Expand the Data node, expand the suffix of the database to index, and select the database.
3. Select the Indexes tab in the right pane.
NOTE:
Do not click the Database Settings node because this opens the Default Index Settings
window, not the window for configuring indexes per database.
4. If the attribute to be indexed is listed in the Additional Indexes table, go to step 6. Otherwise,
click Add Attribute to open a dialog box with a list of all the available attributes in the server
schema.
5. Select the attribute you want to index, and click OK.
The server adds the attribute to the Additional Indexes table.
6. Select the checkbox for each type of index to maintain for each attribute.
7. To create an index for a language other than English, enter the OID of the collation order to
use in the Matching Rules field.
456 Managing indexes