wild card search feature between path string

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2011 04:59 AM
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
Is there any search mechanism I can use (cmis, xpath or lucene) which has this capability?
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?
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2011 05:34 AM
Hi,
Your Lucene query should be something like this:
PATH:"/app:company_home/cm:RootSpace//cm
oc1"
"*" indicates "anything", while // tells the engine that there can be "anything in the path between the parent and the child"
Cosmin
Your Lucene query should be something like this:
PATH:"/app:company_home/cm:RootSpace//cm

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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2011 06:19 AM
That's exactly what I'm looking for.
Thanks a lot.
Thanks a lot.
