AnsweredAssumed Answered

lucenesearch only on uploads files

Question asked by sopre on Oct 23, 2013
Latest reply on Oct 24, 2013 by sopre
Hello everybody,

I need your help for this script plz.

i want search and move the doc, but only the file who are upload not the files on the folders. actually only the file on the folder are moved and not the file upload

my script is :
// log the docs that currently contain the word 'Alfresco' to a log file
var destination = companyhome.childByNamePath("/sites/sodip/documentLibrary/BON_LIVRAISON");

var docs = search.luceneSearch("+PATH:\"/app:company_home/st:sites/cm:sodip/cm:documentLibrary/cm:_x0031__x0020_SCAN/*\"+TEXT:Livr. and Bon");
for (var i=0; i<docs.length; i++);
   for (var i=0; i<docs.length; i++)

is someone can help.

Thank you.

Alfresco 4.2.d
windows serveur 2003