AnsweredAssumed Answered

Searching for nodes with out a property

Question asked by zezom on Apr 25, 2010
Latest reply on Apr 26, 2010 by andy
I've been trying to return all nodes that don't have a specific property assigned. I've tried all of the combinations below with out the results that I'm after.

model.test = search.luceneSearch("+@custom\\:lifeCycle\\:");
model.test = search.luceneSearch("+@custom\\:lifeCycle:*");
model.test = search.luceneSearch("+ISNULL:\"custom:lifeCycle\"");
model.test = search.luceneSearch("+ISUNSET\\:\"custom:lifeCycle\"");
model.test = search.luceneSearch("ISNULL:\"custom:lifeCycle\"");
model.test = search.luceneSearch("ISNOTNULL:\"cm:lifeCycle\"");
model.test = search.luceneSearch("ISNOTNULL:\"custom:lifeCycle\"");
model.test = search.luceneSearch("ISNULL:\"\@{custom.model\}lifeCycle\"");
model.test = search.luceneSearch("ISNULL:\"custom:lifeCycle\"");
model.test = search.luceneSearch("(ISNOTNULL\\:\"custom\\:lifeCycle\")");
model.test = search.luceneSearch("(ISUNSET\\:\"custom\\:lifeCycle\")");

So to recap, what I want is to find all nodes that doesn't have node.properties['custom:lifeCycle'] value defined.

Thanks,
Ryan Thorburn.

Outcomes