You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2007/05/31 15:31:16 UTC

[jira] Commented: (DIRSERVER-951) Negated filter on indexed attribute doesn't find entries without attribute

    [ https://issues.apache.org/jira/browse/DIRSERVER-951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500365 ] 

Emmanuel Lecharny commented on DIRSERVER-951:
---------------------------------------------

If so, then this is clearly a bug.

However, for performance reasons, I suggest you to avoid using *not* filters, even on indexed attributes. Doing so will simply result on a full scan, with rejection of entries which attribute exist. Of course, this is just and advice, and sometime, it's simply not possible ...

> Negated filter on indexed attribute doesn't find entries without attribute
> --------------------------------------------------------------------------
>
>                 Key: DIRSERVER-951
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-951
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.5.1
>            Reporter: Martin Alderson
>
> Searching with filter (!(myAttribute=value)) will not find entries which do not have a myAttribute attribute when that attribute is indexed.  When myAttribute is not indexed the filter works as expected, finding all entries that either do not have the specified value for myAttribute or do not have any values for myAttribute at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.