Indexing a changelog attribute
Steps
-
Use
dsconfigto set attribute indexing on an attribute in the changelog backend.Example:
Index different attributes by adding specific properties. In the following example, the command enables the Changelog Backend and sets the backend to include all user attributes (
*) forADDorMODIFYoperations using thechangelog-include-attributeproperty. Thechangelog-deleted-entry-include-attributeproperty is set to all attributes (*) to specify a set of attribute types that should be included in a changelog entry forDELETEoperations. Attributes specified in this list are recorded in thedeletedEntryAttrsattribute on the changelog entry when an entry is deleted. The attributesdisplayNameandemployeeNumberare indexed using theindex-include-attributeproperty.$ bin/dsconfig set-backend-prop --backend-name changelog \ --set "enabled:true" \ --set "changelog-include-attribute:*" \ --set "changelog-deleted-entry-include-attribute:*" \ --set "index-include-attribute:displayName" \ --set "index-include-attribute:employeeNumber" -
To add another attribute to index, use the
dsconfig--addoption, which adds the attribute to an existing configuration setting.Example:
$ bin/dsconfig set-backend-prop --backend-name changelog \ --add "index-include-attribute:cn"