cancel
Showing results for 
Search instead for 
Did you mean: 

Query syntax for content under Company Home

richardgunderse
Champ in-the-making
Champ in-the-making
Hi

I just need to retrieve all of the content under my 'Company Home' space but I can't figure it out.

I've been trying

Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/{http://www.alfresco.org/model/application/1.0}company_home/*\"");

..and lots of variations. I only have 6 test documents, and one 'sub' space containing another two docs.

However my query returns what seems to be the entire repository.

Please could someone advise me how to retrieve only the docs and spaces in my Company Home?

Thanks
2 REPLIES 2

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Try "PATH:\"/app:company_home/*\""

Hope this helps,

–Alaaeldin

richardgunderse
Champ in-the-making
Champ in-the-making
Thanks for that - works perfectly Smiley Happy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.