Hi all,
I am still really struggling with something that should be a simple query, but isn't.
I have a filter that returns just one single result, as follows:
[25/May/2013:20:54:16 +0100] conn=82 op=10 SRCH base="o=Foo,c=GB" scope=2
filter="(&(associatedDomain=example.com)(!(associatedDomain=host.example.com)))"
attrs="associatedDomain"
[25/May/2013:20:54:17 +0100] conn=82 op=10 RESULT err=4 tag=101 nentries=1 etime=1
notes=U
This query however returns the following error:
Search error 4: Size limit exceeded
The "notes=U" in the log gives an excessively cryptic clue - the query
wasn't indexed, and the error message seems to be misleading, as it doesn't seem
to be the size limit that is exceeded, but rather the time limit.
I have indexed the associatedDomain attribute as follows:
dn: cn=associatedDomain,cn=default indexes,cn=config,cn=ldbm database,cn=plu
gins,cn=config
objectClass: nsIndex
objectClass: top
cn: associatedDomain
nsSystemIndex: false
nsIndexType: eq
Am I correct in understanding that a "eq" index is not enough to handle the
"not" part of the filter above?
What do you have to do to index a "not" filter?
Regards,
Graham
--
Attachments:
- smime.p7s
(application/pkcs7-signature — 4.3 KB)