Creating Indexes
Chapter 10
Managing Indexes
401
You can use the keyword
none
in the
nsIndexType
attribute to specify that no
indexes are to be maintained for the attribute. For example, suppose you want to
temporarily disable the
sn
indexes you just created on the
Example1
database. You
change the
nsIndexType
to
none
as follows:
dn: cn=sn,cn=index,cn=Example1,cn=ldbm
database,cn=plugins,cn=config
objectClass:top
objectClass:nsIndex
cn:sn
nsSystemIndex:false
nsIndexType:none
For a complete list of collation orders and their OIDs, see Appendix D,
“Internationalization.”
For more information about the index configuration attributes, see the
Red Hat
Directory Server Configuration, Command, and File Reference
.
For more information about the
ldapmodify
command-line utility, refer to the
Red
Hat Directory Server Configuration, Command, and File Reference
.
Running the db2index.pl Script
Once you have created an indexing entry or added additional index types to an
existing indexing entry, run the
db2index.pl
script to generate the new set of
indexes to be maintained by the Directory Server. Once you run the script, the new
set of indexes is active for any new data you add to your directory and any existing
data in your directory.
To run the
db2index.pl
Perl script:
1.
From the command-line, change to the following directory:
serverRoot
/slapd-
serverID
2.
Run the
db2index.pl
Perl script.
For more information about using this Perl script, refer to
Red Hat Directory
Server Configuration, Command, and File Reference
.
NOTE
You should always use the attribute’s primary name (not the
attribute’s alias) when creating indexes. The primary name of the
attribute is the first name listed for the attribute in the schema; for
example,
uid
for the
userid
attribute. See Table 10-3, on page 415,
for a list of all primary and alias attribute names.
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 ...