cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search

macweaz
Champ in-the-making
Champ in-the-making
I have this folder hierarchy
Company Home->Intranet->Legal->Docs
I've made a javascript to count documents inside Docs folder,
the script counts the files that start with "Rda_" and returns some data,
but the lucene search doesn't work, how can I do the search?
my search is:
var docs =search.luceneSearch('+PATH:"/app:company_home/cm:Legal/cm:Docs//*"+TEXT:"Rda_*"');
but it returns so many files in other folders..
How can I do this?
thank you
luca
1 REPLY 1

dhalupa
Champ on-the-rise
Champ on-the-rise
Try changing your statement to this

var docs =search.luceneSearch('+PATH:"/app:company_home/cm:Legal/cm:Docs/*" +TEXT:"Rda_*"');

Kind regards,

Denis