cancel
Showing results for 
Search instead for 
Did you mean: 

Search by children names

lbm
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to define an advanced search with the following things to take into account:
- Some specific properties (cm:name= "my name", for example) <- There's no problem with this
- Some specific children (node.children[x].name="child1", node.children[y].name="child4", etc). <- Here is the problem

What's the query like? How can I get a node depending on some properties and depending also (and most important) on his children?

Thank you very much.
1 REPLY 1

damiar
Champ in-the-making
Champ in-the-making
With Lucene you can retrieve a node using any property (or properties) defined on it.

As far as I know with Lucene you cannot search for a node using a criteria based on its children (but I'm not an expert on Lucene). Altough I think you can use a XPath query.