cancel
Showing results for 
Search instead for 
Did you mean: 

Query lucene: how to get the children?

ventus85
Champ in-the-making
Champ in-the-making
Good morning.

I have three groups: "group_1", "group_2" and "group_3"
I have two subgroups: "subgroup_1" and "subgroup_2"
The subgroup "subgroup_1" has two users: "user1" and "user2".
The subgroup "subgroup_2" has only "user1"

I want a query that returns all the subgroups where there is "user1", i.e. "subgroup_1" and "subgroup_2".
How to get the children of the subgroups?
This is possible?

Thanks to all.
2 REPLIES 2

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

You would have to find the user1 entries and then find thier parents via hte node service or query.

If the user1 node is the same node in each folder with more than one parent just use the NodeService.

Andy

ventus85
Champ in-the-making
Champ in-the-making
I agree, but I was hoping for a faster solution.
Thank you very much