AnsweredAssumed Answered

Search for a document type in a specific folder

Question asked by i200 on Mar 4, 2013
Latest reply on Mar 6, 2013 by zladuric
Hi,

Im trying to make a web script that does a search for a Document Type in a user specified folder. Something like this works fine:

query = 'TYPE:"intranet:billing" AND PATH:"/app:company_home/st:sites/cm:Intranet//*""';

But i wonder if theres an easier way to handle this because i must convert the user input "/intranet" to "/app:company_home/st:sites/cm:Intranet//*".

I was looking at something easy/efficient like:

nodes = companyhome.childByNamePath(args.folder);
query = 'TYPE:"intranet:billing" AND PATH:"nodes"';

But i cant get it to work.

Any ideas?

Thanks in advance :-)

Outcomes