cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene search corresponding to CMIS IN_TREE query

marcus_svensson
Champ in-the-making
Champ in-the-making
Hi

Is there a way to make searches with lucene in alfresco in the same way as the CMIS IN_TREE function works, search all decendants in the query?

Using the PARENT selector I have managed to select the direct children of a node, but I need to be able to search all nodes below a certain node in a tree.

query += "+PARENT:\"workspace://SpacesStore/"+ targetNode.getId() + "\"";


Thanks!
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

You would have to get the PATH for the node and then do:
PATH:"<path_for_node>//*"

Andy

marcus_svensson
Champ in-the-making
Champ in-the-making
Thanks