[Date Prev][Date Next]
Re: What indexes are allowed? [auf Viren überprüft]
Pierangelo Masarati schrieb:
The matching rules exist, and "homePostalAddress" has them noted as
EQUALITY and SUBSTR matching rules. However, they're notI think, we should add a hint to the Administrator's Guide /
implemented. If you look at servers/slapd/schema_init.c, you'll
notice that (this is re2.3, but the same occurs in HEAD):
a) One can only set index-types, which are defined in the schema.
b) One can only use index-types, which use the implemented matching rules.
So the hint should be something like this:
"You can't use indexes on attributes, that require one of the following
matching rules (defined in the schema):
E.g. for attribute homePostalAddress in cosine.schema index eq and sub
cannot be set.
attributetype ( 0.9.2342.19200300.100.1.39 NAME 'homePostalAddress'
DESC 'RFC1274: home postal address'
SYNTAX 18.104.22.168.4.1.1422.214.171.124.41 )"
Please correct me, of I'm wrong.
i.e. there's no match function associated to the matching rules; as
such, matching on those values is not implemented.
Are there other matching rules, that are not implemented?
Concerning the reason, I believe it's because there's never been any
real push to implement them. Feel free to contribute a patch (thru
the ITS <http://www.openldap.org/its/> and conforming to the
I'm not a developer, so I think I won't write a patch.
Can I - as a work around - change the schema to use other (similar)
matching rules to get a working index?