AnsweredAssumed Answered

Search content in specific folder

Question asked by billmce on Apr 28, 2010
Latest reply on Apr 29, 2010 by billmce
I've read the Search page on the wiki, I've searched the forums, I've read lucene documentation, I've read XPATH documentation … but the solution to this problem escapes me.

I have folders in Alfresco laid out as:

Company Home|
……………….|
……………….|Client Name|
……………………………..|
……………………………..|Accounting
……………………………..|Sales
……………………………..|Human Resources

I'm trying to put together a webscript that will search for documents only in the 'Human Resources' folder.


var query = "PATH:\"/app:company_home/cm:Client_Name/cm:Human_Resources//*\"+TEXT:searchString";
var results = search.luceneSearch(query);

Where am I going wrong and can you point me to some documentation on setting PATH for luceneSearch?
Any help appreciated … I'm at a loss.
Thanks.

Outcomes