Creating Indexes
Chapter 10
Managing Indexes
399
Creating indexes from the command-line involves two steps:
• Using the
ldapmodify
command-line utility to add a new index entry or edit
an existing index entry.
• Running the
db2index.pl
Perl script to generate the new set of indexes to be
maintained by the server.
The following sections describe the steps involved in creating indexes.
Adding an Index Entry
Use
ldapmodify
to add the new index attributes to your directory. If you want to
create a new index that will become one of the default indexes, add the new index
attributes to the
cn=default indexes,cn=config,cn=ldbm database,
cn=plugins,cn=config
entry.
To create a new index for a particular database, add it to the
cn=index,cn=
database_name
,cn=ldbm database,cn=plugins,cn=config
entry,
where
cn=
database_name
corresponds to the name of the database.
For information on the LDIF update statements required to add entries, see “LDIF
Update Statements,” on page 63.
For example, assume you want to create presence, equality, and substring indexes
for the
sn
(surname) attribute in the
Example1
database.
NOTE
You cannot create new system indexes because system indexes are
hard-coded in Directory Server.
NOTE
Avoid creating entries under
cn=config
in the
dse.ldif
file. The
cn=config
entry in the simple, flat
dse.ldif
configuration file is
not stored in the same highly scalable database as regular entries. As
a result, if many entries, particularly entries that are likely to be
updated frequently, are stored under
cn=config
, performance will
probably suffer.
Although we recommend you do not store simple user entries under
cn=config
for performance reasons, it can be useful to store special
user entries such as the Directory Manager entry or Replication
Manager (supplier bind DN) entry under
cn=config
since
this
allows you to centralize configuration information.
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...