This discussion is archived
1 Reply Latest reply: Jun 3, 2008 10:40 AM by 560578 RSS

Searching a category attribute with null value

560578 Newbie
Currently Being Moderated
Hi all!
Im trying to search for an attribute of type Long who has no value.
I tried building a search expression and using a null obj as the right operand, but that dont seem to work.

How can I search for a document who doesnt have one of his attribute (custom) set to a value ?


Thanks
  • 1. Re: Searching a category attribute with null value
    560578 Newbie
    Currently Being Moderated
    To be more clear,
    Doc -> custom attribute namex xyz of type Long

    if the value isnt set, how do I find the docs that have xyz at null ?

    Currenlty EQUAL gives me a InvalidSearchExpressionException
    I tried NOT_EQUAL some Long value that isnt anywhere but that only returns me the docs that have the attribute set to a value, not those at null

    Anyone had that problem ?