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/slapi-plugin.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/slapi-plugin.h')
-rw-r--r-- | ldap/servers/slapd/slapi-plugin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ldap/servers/slapd/slapi-plugin.h b/ldap/servers/slapd/slapi-plugin.h index 0782c471..56959b3d 100644 --- a/ldap/servers/slapd/slapi-plugin.h +++ b/ldap/servers/slapd/slapi-plugin.h @@ -891,6 +891,8 @@ char * slapi_ch_smprintf(const char *fmt, ...) */ int slapi_call_syntax_values2keys_sv( void *vpi, Slapi_Value **vals, Slapi_Value ***ivals, int ftype ); +int slapi_call_syntax_values2keys_sv_pb( void *vpi, Slapi_Value **vals, + Slapi_Value ***ivals, int ftype, Slapi_PBlock *pb ); int slapi_call_syntax_assertion2keys_ava_sv( void *vpi, Slapi_Value *val, Slapi_Value ***ivals, int ftype ); int slapi_call_syntax_assertion2keys_sub_sv( void *vpi, char *initial, @@ -1582,6 +1584,9 @@ typedef struct slapi_plugindesc { #define SLAPI_PLUGIN_SYNTAX_FLAGS 707 #define SLAPI_PLUGIN_SYNTAX_COMPARE 708 +/* user defined substrlen; not stored in slapdplugin, but pblock itself */ +#define SLAPI_SYNTAX_SUBSTRLENS 709 + /* ACL plugin functions and arguments */ #define SLAPI_PLUGIN_ACL_INIT 730 #define SLAPI_PLUGIN_ACL_SYNTAX_CHECK 731 |