diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2008-07-15 16:49:43 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2008-07-15 16:49:43 +0000 |
commit | caf70cef506b2e85b9df86ecbba5de5ec1b4ee1e (patch) | |
tree | 2810263ae3abb9ffe21a4bc3d7ae80a42fea3634 /ldap/servers/slapd/slap.h | |
parent | 0bcf4f075f6ac857d60464f4d259374a9929ab2b (diff) | |
download | ds-caf70cef506b2e85b9df86ecbba5de5ec1b4ee1e.tar.gz ds-caf70cef506b2e85b9df86ecbba5de5ec1b4ee1e.tar.xz ds-caf70cef506b2e85b9df86ecbba5de5ec1b4ee1e.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
* [...]
Diffstat (limited to 'ldap/servers/slapd/slap.h')
-rw-r--r-- | ldap/servers/slapd/slap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ldap/servers/slapd/slap.h b/ldap/servers/slapd/slap.h index 3241af71..dea64a2f 100644 --- a/ldap/servers/slapd/slap.h +++ b/ldap/servers/slapd/slap.h @@ -1444,8 +1444,18 @@ typedef struct slapi_pblock { /* For password policy control */ int pb_pwpolicy_ctrl; void *pb_vattr_context; /* hold the vattr_context for roles/cos */ + + int *pb_substrlens; /* user specified minimum substr search key lengths: + * nsSubStrBegin, nsSubStrMiddle, nsSubStrEnd + */ } slapi_pblock; +/* index if substrlens */ +#define INDEX_SUBSTRBEGIN 0 +#define INDEX_SUBSTRMIDDLE 1 +#define INDEX_SUBSTREND 2 +#define INDEX_SUBSTRLEN 3 /* size of the substrlens */ + /* The referral element */ typedef struct ref { char *ref_dn; /* The DN of the entry that contains the referral */ |