[Date Prev][Date Next]
Indexing field causes 0 search results
I've searched the archives and googled, and I've found other people seeing
this symptom, but no real solutions.
I've got the following schema:
attributetype ( 22.214.171.124.4.1.13095.3.1.1.1
DESC 'dalMailAlias Owner'
SUP owner )
attributetype ( 126.96.36.199.4.1.13095.3.1.1.2
DESC 'dalMailAlias Note'
SUP description )
objectclass ( 188.8.131.52.4.1.13095.3.1.2
DESC 'experimental schema for Dalhousie User specific attributes'
MAY ( dalMailAliasOwner $ dalMailAliasNote ) )
... which I use like so:
dn: rdn=brandon.hume, cn=Mailmaps, dc=example, dc=com
dalMailAliasOwner: rdn=brandon.hume, cn=People, dc=example, dc=com
dalMailAliasNote: This is Brandon's alias.
(So essentially all I'm after is associating an inetLocalMailRecipient with
Now, when I do a search against dalMailAliasOwner - which my program does,
several times typically in a run - a search result can take up to 20+ seconds
to produce, which you'd expect with an unindexed field.
So, in slapd.conf, I added:
index dalMailAliasOwner eq
... and regenerated the indexes. Then, attempting to search produced *no*
results whatsoever (no errors, just no results). Debugging showed the ldbm
backend discarding even valid candidates.
Removing the index restored things to right again.
Is there anything obvious that I'm doing wrong?