To create global indexes, you must first create global index catalogs, as described in the following procedure. This procedure describes how to create global index catalogs, create and add global indexes, as well as adding data to the global indexes. You can add the data to your global indexes later, if you prefer.
You should already have deployment your Sun OpenDS Standard Edition proxy in a distribution architecture.
$ gicadm -h localhost -D "cn=Directory Manager" -p 4444 -w password -X \ create-catalog --catalogName name
The catalog name must be unique.
The following command creates a global index of telephone number attribute entry values and adds that newly created global index to the global index catalog created in the previous step.
$ gicadm -h localhost -D "cn=Directory Manager" -p 4444 -w password -X \ add-index --catalogName name \ --attributeName telephoneNumber
You can use the add-index subcommand later to add additional global indexes to the global index catalog.
The split-ldif command separates the content of one LDIF file into several LDIF files based on the distribution algorithm configured with your proxy. It can also generate files that contain data to load in a global index. You should use split-ldif during global index initialization if the remote LDAP servers will contain data that needs to be indexed when you start your Directory service. If you plan to start without data in your directory, you can skip this step.
For information on the split-ldif command, including examples on how to use the command to populate a global index with one or several indexed attributes, see split-ldif in Sun OpenDS Standard Edition 2.2 Command-Line Usage Guide.
For more information see To Import Contents of a File into a Global Index Catalog.
$ gicadm -h localhost -D "cn=Directory Manager" -p 4444 -w password -X \ associate --catalogName name \ --distributionWorkflowElement myDistributionName