![Netscape NETSCAPE DIRECTORY SERVER 6.02 Administrator'S Manual Download Page 357](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673357.webp)
Creating Indexes
Chapter
10
Managing Indexes
357
For example, you want to create a browsing index to accelerate an
ldapsearch
on
the entry
"dc=example,dc=com"
held in the
Example1
database where the search
base is
"dc=example,dc=com"
, the search filter is
(|(objectclass=*)(objectclass=ldapsubentry))
, the scope is
one
and the
sorting order for the returned attributes is
cn
,
givenname
,
o
,
ou
, and
sn
.
First, type the following to change to the directory containing the utility:
cd /usr/netscape/servers/shared/bin
Run the
ldapmodify
command-line utility as follows:
ldapmodify -a -h server -p 389 -D "cn=directory manager" -w password
The
ldapmodify
utility binds to the server and prepares it to add an entry to the
configuration file.
Next, you need to add two browsing index entries which define your browsing
index.
The first entry you add specifies the base, scope and filter of the browsing index:
dn: cn="dc=example,dc=com",cn=Example1,cn=ldbm
database,cn=plugins,cn=config
objectClass:top
objectClass:vlvSearch
cn:"dc=example,dc=com"
vlvbase:"dc=example,dc=com"
vlvscope:one
vlvfilter:(|(objectclass=*)(objectclass=ldapsubentry))
The
cn
contains the browsing index identifier which specifies the entry on which
you want to create the browsing index, in this example the
"dc=example,dc=com"
entry. We recommend you use the
dn
of the entry for your browsing index
identifier, which is, the approach adopted by the Directory Server Console, to
prevent identical browsing indexes from being created. The entry is a member of
the
vlvSearch
object class. The
vlvbase
attribute value specifies the entry on
which you want to create the browsing index, in this example the
"dc=example,dc=com"
entry (that is the browsing index identifier). The
vlvscope
attribute is
one
, indicating that the base for the search you want to accelerate is
one
.
A search base of
one
means that only the immediate children of the entry specified
in the
cn
attribute, and not the entry itself, will be searched. The
vlvfilter
specifies the filter to be used for the search, in this example
(|(objectclass=*)(objectclass=ldapsubentry))
.
NOTE
You can only create browsing indexes in ldbm databases.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.02
Page 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Page 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Page 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Page 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Page 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Page 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Page 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Page 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Page 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Page 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...