diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2008-07-16 13:29:59 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2008-07-16 13:29:59 +0000 |
commit | db1a53425c0109d8368f1b6e0e69b46f8b0b3318 (patch) | |
tree | 3da98cd785c0ecc77023ec438bfef1ea8e348592 | |
parent | caf70cef506b2e85b9df86ecbba5de5ec1b4ee1e (diff) | |
download | ds-db1a53425c0109d8368f1b6e0e69b46f8b0b3318.tar.gz ds-db1a53425c0109d8368f1b6e0e69b46f8b0b3318.tar.xz ds-db1a53425c0109d8368f1b6e0e69b46f8b0b3318.zip |
Resolves: #447353
Summary: RFE: search optimization and single character substring searches
Description: extended the substring key to have 3 types:
* begin (e.g., *^a)
* middle (e.g., *abc)
* end (e.g., *xy$)
* Usage: turn an index object to extensibleobject and set an integer value as
follows:
* dn: cn=sn, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config
* objectClass: extensibleObject
* nsSubStrBegin: 2
* nsSubStrMiddle: 3
* nsSubStrEnd: 2
* [...]
-rw-r--r-- | ldap/servers/plugins/syntaxes/syntax.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ldap/servers/plugins/syntaxes/syntax.h b/ldap/servers/plugins/syntaxes/syntax.h index 6bfbd1a9..3db32f44 100644 --- a/ldap/servers/plugins/syntaxes/syntax.h +++ b/ldap/servers/plugins/syntaxes/syntax.h @@ -58,7 +58,9 @@ #define SYNTAX_SI 16 /* space insensitive: used with SYNTAX_CIS */ #define SYNTAX_INT 32 /* INTEGER */ -#define SUBLEN 3 +#define SUBBEGIN 2 +#define SUBMIDDLE 3 +#define SUBEND 2 #ifndef MIN #define MIN( a, b ) (a < b ? a : b ) |