TYPE:"{http://www.alfresco.org/model/content/1.0}folder" +PATH:"/app:company_home/cm:LesContrats//*"+@cm\:name:"*a*"
var objects = search.luceneSearch(folderQuery);
for(entry=0; i<objects.length; entry++){
//model.projectQuery+=search.luceneSearch("???"+objects[i]+"???");
}
Quand j'affiche un entry je reçois:Node Type: {http://www.alfresco.org/model/content/1.0}folder Node Ref: workspace://SpacesStore/fc48b0f4-6b7d-4f64-a124-9c17523de407
Comment est-ce que je peux chercher des fichiers (content) qui se trouvent dans cet dossier? Donc quel est le syntax pour recherche un node, du genre "/Node Type: {http://www.alfresco.org/model/content/1.0}folder Node Ref: workspace://SpacesStore/fc48b0f4-6b7d-4f64-a124-9c17523de407/*"
du façon +PATH:"/app:company_home/cm:Clients/*"
TYPE:"{http://www.alfresco.org/model/content/1.0}folder" +PATH:"/app:company_home/cm:Backups/*/*"
Mais, pour faire le loop, le objects.length donne 0. Comment est-ce que je peux faire un loop avec les résultats d'un recherche Lucene:var objects = search.luceneSearch(query);
et quelque chose comme:for(entry=0; entry<objects.length; entry++){
newQuery+=' PARENT:"' + objects[entry].node + '"';
}
Merci.
backupsQuery+='TYPE:"{http://www.alfresco.org/model/content/1.0}folder" +PATH:"/app:company_home/cm:Clients/*"+@cm\\:name:"*'+args.searchString+'*"';
projectQuery+='TYPE:"{http://www.alfresco.org/model/content/1.0}folder" +PATH:"/app:company_home/cm:Clients/*/*"';
var objects = search.luceneSearch(backupsQuery);
model.projectQueryLength=objects.length;
for(entry=0; entry<objects.length; entry++){
projectQuery+=' PARENT:"' + objects[entry].nodeRef + '"';
}
Mais je reçois tous les spaces de les spaces ou il fait les recherches. Quel est le problème?
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.