cancel
Showing results for 
Search instead for 
Did you mean: 

wild card search feature between path string

gokceng
Champ in-the-making
Champ in-the-making
I have my space structure like this:

RootSpace
|
—-ChildSpace1
    |
    —-Doc1
—-ChildSpace2
    |
    —-Doc1

And I want to be able search like this:

PATH:"/app:company_home/cm:RootSpace/*/Doc1"

I'm getting
Search failed due to: org.alfresco.repo.search.SearcherException: Failed to parse query:
error while trying that query, because it is invalid.

Is there any search mechanism I can use (cmis, xpath or lucene) which has this capability?
2 REPLIES 2

cosminaru
Champ in-the-making
Champ in-the-making
Hi,

Your Lucene query should be something like this:

PATH:"/app:company_home/cm:RootSpace//cmSmiley Very Happyoc1"

"*" indicates "anything", while // tells the engine that there can be "anything in the path between the parent and the child"

Cosmin

gokceng
Champ in-the-making
Champ in-the-making
That's exactly what I'm looking for.
Thanks a lot.