Adding An Index Entry - Netscape DIRECTORY SERVER 6.02 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Creating Indexes
Creating indexes from the command line involves two steps:
Using the
an existing index entry.
Running the
maintained by the server.
NOTE
The following sections describe the steps involved in creating indexes.

Adding an Index Entry

Use
ldapmodify
create a new index that will become one of the default indexes, add the new index
attributes to the
cn=plugins,cn=config
To create a new index for a particular database, add it to the
cn=index,cn=instanceName,cn=ldbm database,cn=plugins,cn=config
where
NOTE
For information on the LDIF update statements required to add entries see "LDIF
Update Statements," on page 58.
For example, you want to create presence, equality and substring indexes for the
(surname) attribute in the
352
Netscape Directory Server Administrator's Guide • May 2002
command-line utility to add a new index entry or edit
ldapmodify
db2index.pl
You cannot create new system indexes because system indexes are
hard coded in Directory Server.
to add the new index attributes to your directory. If you want to
cn=default indexes,cn=config,cn=ldbm database,
entry.
corresponds to the name of the database.
cn=instanceName
Avoid creating entries under
entry in the simple, flat
cn=config
not stored in the same highly scalable database as regular entries. As
a result, if many entries, and particularly entries that are likely to be
updated frequently, are stored under
probably suffer.
However,although we recommend you do not store simple user
entries under
cn=config
store special user entries such as the Directory Manager entry or
Replication Manager (supplier bind DN) entry under
this allows you to centralize configuration information.
Example1
perl script to generate the new set of indexes to be
cn=config
dse.ldif
cn=config
for performance reasons, it can be useful to
database.
entry,
in the
file. The
dse.ldif
configuration file is
, performance will
cn=config,
as
sn

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents