AnsweredAssumed Answered

Solr 6 - JAVASCRIPT- get sub-folders starting by ...

Question asked by anakin59490 on Oct 31, 2018
Latest reply on Oct 31, 2018 by afaust

Hi,

 

I have one site "mySite" with "documentLibrary". Inside I have "PATIENTS" folder :

 

I don't find the way, in javascript,  to get all sub-folders of "PATIENTS" folder starting by "CA" for example.

 

I have tried differents method with :

 

search.query({query: "PATH:/app:company_home/st:sites/cm:mySite/cm:documentLibrary/cm:PATIENTS//*"});

OR

search.xpathSearch("/app:company_home/st:sites/cm:mySite/cm:documentLibrary/cm:PATIENTS//*");

OR

search.luceneSearch("TYPE:\"cm:folder\" AND @cm\\:title:\"*"+filterTerm+"*\"");

 

without success...

 

Thank you

 

PS : each sub-folder is created by a java mechanism. Is-it possible that a parameter or an action ( may-be permission), during the sub-folder creation, can cancel the sub-folder scan ?

 

Thank you

Outcomes