Index rules specifications for attributes

Specifying an indexing rule for an attribute controls the creation and maintenance of special indexes on the attribute values.

Indexing rules improves the response time to searches with filters that include those attributes. The five possible types of indexing rules are related to the operations applied in the search filter.
Equality
Applies to the following search operations:
  • equalityMatch '='
For example:
"cn = John Doe"
Ordering
Applies to the following search operation:
  • greaterOrEqual '>='
  • lessOrEqual '<='
For example:
"sn >= Doe"
Approximate
Applies to the following search operation:
  • approxMatch '~='
For example:
"sn ~= doe"
Substring
Applies to the search operation by using the substring syntax:
  • substring '*'
For example:
"sn = McC*"
"cn = J*Doe"
Reverse
Applies to the following search operation:
  • '*' substring
For example:
"sn = *baugh"
At a minimum, it is recommended that you specify equality indexing on any attributes that are to be used in search filters.