Creating a filtered index
Steps
-
To create a filtered index, use the
dsconfigtool.The following command creates an equality index on the
companyDomainattribute and maintains an index for the equality filter defined"(objectclass=company)".Example:
$ bin/dsconfig create-local-db-index --backend-name "userRoot" \ --index-name companyDomain --set maintain-equality-index-without-filter:true \ --set index-type:equality --set equality-index-filter:"(objectclass=company)" -
After you have created the index, rebuild the indexes.
-
Stop the PingDirectory server using
bin/stop-server. -
Run the
rebuild-indextool.Example:
$ bin/rebuild-index --baseDN dc=example,dc=com --index companyDomain
-
-
Start the PingDirectory server using
bin/start-server.