My Oracle Support Banner

ODSEE - Handling NOT (!) Filter Queries With Indexes (Doc ID 1572576.1)

Last updated on MAY 31, 2022

Applies to:

Oracle Directory Server Enterprise Edition - Version and later
Information in this document applies to any platform.


Search filters containing the NOT (!) symbol will (in most cases) result in an unindexed search because those type of searches can not be indexed.

For example -

[11/Aug/2018:21:17:38 -0400] conn=xx op=1 msgId=2 - SRCH base="dc=<SUFFIX_DN>" scope=2 filter="(!(description=*))" attrs="dn"
[11/Aug/2018:21:17:38 -0400] conn=xx op=1 msgId=2 - RESULT err=0 tag=101 nentries=155 etime=0 notes=U

This article goes over the use of the NOT (!) symbol in search filters.

For more info -
Search Filter Boolean Operators


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Search filters that contain a NOT (!) symbol
 Handling Not (!) in a Search Filter

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.