Creating a new local DB VLV index
Steps
-
Use
dsconfigwith thecreate-local-db-vlv-indexoption and the--index-name,--backend-name, and--set index-type:(propertyValue)options.If you do not set any property values, the default values are assigned.
Example:
$ bin/dsconfig create-local-db-vlv-index \ --index-name givenName --backend-name userRoot --set base-dn:dc=example,dc=com \ --set scope:whole-subtree --set filter:"(objectclass=*)" \ --set sort-order:givenName -
Rebuild the index using the
rebuild-indextool.You must add the
vlv.prefix to the index name to rebuild the VLV index.Example:
The following command can be run with the server on or offline with the addition of the
--taskand connection options.$ bin/rebuild-index --baseDN dc=example,dc=com --index vlv.givenName