1. To create a new local DB index, run dsconfig with the --create-local-db-index option and the --index-name, --backend-name, and --set index-type:<value> options.
    $ bin/dsconfig create-local-db-index \ 
      --index-name roomNumber --backend-name userRoot \
      --set index-type:equality
  2. To view the index, run dsconfig with the get-local-db-index-prop option.
    $ bin/dsconfig get-local-db-index-prop \ 
      --index-name roomNumber --backend-name userRoot
  3. Stop the server.

    Although you can rebuild an index with the server online, it is not recommended.

    $ bin/stop-server
  4. To rebuild the index, run the rebuild-index tool.
    $ bin/rebuild-index --baseDN dc=example,dc=com --index roomNumber
  5. Restart the server.
    $ bin/start-server