Nssubstrbegin, Nssubstrend, Nssubstrmiddle – Red Hat 8.1 User Manual
Page 139
3.4 .7.1. nsSubStrBegin
By default, for a search to be indexed, the search string must be at least three characters long, without
counting any wildcard characters. For example, the string abc would be an indexed search while ab*
would not be. Indexed searches are significantly faster than unindexed searches, so changing the
minimum length of the search key is helpful to increase the number of indexed searches.
This substring length can be edited based on the position of any wildcard characters. The
nsSubStrBegin attribute sets the required number of characters for an indexed search for the
beginning of a search string, before the wildcard. For example:
abc*
If the value of this attribute is changed, then the index must be regenerated using db2index.
Parameter
Description
Entry DN
cn=attribute_name, cn=index,
cn=database_name, cn=ldbm database,
cn=plugins, cn=config
Valid Values
Any integer
Default Value
3
Syntax
Integer
Example
nsSubStrBegin: 2
3.4 .7.2. nsSubStrEnd
By default, for a search to be indexed, the search string must be at least three characters long, without
counting any wildcard characters. For example, the string abc would be an indexed search while ab*
would not be. Indexed searches are significantly faster than unindexed searches, so changing the
minimum length of the search key is helpful to increase the number of indexed searches.
This substring length can be edited based on the position of any wildcard characters. The nsSubStrEnd
attribute sets the required number of characters for an indexed search for the end of a search string,
after the wildcard. For example:
*xyz
If the value of this attribute is changed, then the index must be regenerated using db2index.
Parameter
Description
Entry DN
cn=attribute_name, cn=index,
cn=database_name, cn=ldbm database,
cn=plugins, cn=config
Valid Values
Any integer
Default Value
3
Syntax
Integer
Example
nsSubStrEnd: 2
3.4 .7.3. nsSubStrMiddle
By default, for a search to be indexed, the search string must be at least three characters long, without
counting any wildcard characters. For example, the string abc would be an indexed search while ab*
would not be. Indexed searches are significantly faster than unindexed searches, so changing the
minimum length of the search key is helpful to increase the number of indexed searches.
This substring length can be edited based on the position of any wildcard characters. The
nsSubStrMiddle attribute sets the required number of characters for an indexed search where a
wildcard is used in the middle of a search string. For example:
ab*z
If the value of this attribute is changed, then the index must be regenerated using db2index.
Parameter
Description
Entry DN
cn=attribute_name, cn=index,
cn=database_name, cn=ldbm database,
cn=plugins, cn=config
Valid Values
Any integer
Default Value
3
Syntax
Integer
Red Hat Directory Server 8.1 Configuration and Command Reference
139