AnsweredAssumed Answered

Search for nodes that do not have a property

Question asked by neilecker on Oct 1, 2017
Latest reply on Oct 2, 2017 by neilecker

I'd like to search for nodes that do not have a specific property from the Javascript Console using fts-alfresco.  Is this possible?  I've tried several variations such as ISNULL, ISUNSET.


In the following example, I'm trying to find nodes that do not have the custom property gry:documentNumber. 

var searchObj = {
     query: 'PATH:"/app:company_home/st:sites/cm:test-area/cm:documentLibrary/cm:Test//*" AND TYPE:"gry:content" AND ISNULL:"gry:documentNumber" AND -ASPECT:"rma:record"',
     language: 'fts-alfresco',
     page: {maxItems: 10}