[English]Hi all,i'm making a script for move files between folders, the script include a 'searcher/filter' to find the folder where wants move the file, my query in lucene is:$statement= "(@cm\:name:".$_REQUEST['fi'].
" OR @cm\:title:".$_REQUEST['fi'].
")AND -TYPE:\"st:site\" AND NOT TYPE:\"cm:content\" ".
"AND NOT TYPE:\"cm:zone\" AND NOT TYPE:\"bpm:package\" ".
"AND NOT TYPE:\"cm:thumbnail\" AND NOT(PARENT: \"workspace://SpacesStore/9145807e-fd8a-431a-a122-caec7cd256bc\")".
" AND NOT TYPE:\"fm:topic\" AND NOT TYPE:\"fm:forum\" AND NOT TYPE:\"dl:dataList\" AND TYPE:\"cm:folder\"";
where $_REQUEST['fi'], is the word to search.but this query also gets the configuration folders sites,example, i have a site named "prueba", if i search "prueba", found 2 results
Type Name id
*{http://www.alfresco.org/model/content/1.0}folder prueba workspace://SpacesStore/3939ec2f-6bc7-4875-965a-2a1f84352e76
*{http://www.alfresco.org/model/site/1.0}site prueba workspace://SpacesStore/ddd28d82-75b8-4d57-8b8d-2e3d73ac5525
i searched in "node browser" by noderef and prueba (folder) has PrimaryPath: /app:company_home/st:sites/cm
rueba/cm:surf-config/cm
ages/cm:site/cm
ruebathis is a "conf" of site "prueba", and i don't know how hide this kind of folders, i need show only the sites, and the folder in the sites, without expose the configuration folders or files.can anybody help me?I'm working with alfresco 4.2.c[Español]Hola a todos,Estoy haciendo un script para mover archivos entre carpetas, el script incluye un "buscador/filtrador" para encontrar la carpeta dónde se quiere mover el archivo, mi query en lucene es la siguiente:$statement= "(@cm\:name:".$_REQUEST['fi'].
" OR @cm\:title:".$_REQUEST['fi'].
")AND -TYPE:\"st:site\" AND NOT TYPE:\"cm:content\" ".
"AND NOT TYPE:\"cm:zone\" AND NOT TYPE:\"bpm:package\" ".
"AND NOT TYPE:\"cm:thumbnail\" AND NOT(PARENT: \"workspace://SpacesStore/9145807e-fd8a-431a-a122-caec7cd256bc\")".
" AND NOT TYPE:\"fm:topic\" AND NOT TYPE:\"fm:forum\" AND NOT TYPE:\"dl:dataList\" AND TYPE:\"cm:folder\"";
donde $_REQUEST['fi'], is la palabra a buscar.pero esta query también obtiene las carpetas de configuración de los sitios,por ejemplo, tengo una carpeta llamada "prueba" si busco "prueba", encuentro 2 resultados:
|tipo |Nombre |id
*|{http://www.alfresco.org/model/content/1.0}folder |prueba |workspace://SpacesStore/3939ec2f-6bc7-4875-965a-2a1f84352e76
*|{http://www.alfresco.org/model/site/1.0}site |prueba |workspace://SpacesStore/ddd28d82-75b8-4d57-8b8d-2e3d73ac5525
Busqué en el "node browser" por la referencia del nodo, y prueba(la carpeta) tiene la propiedad PrimaryPath: /app:company_home/st:sites/cm
rueba/cm:surf-config/cm
ages/cm:site/cm
ruebaEsta es una configuración del sitio "prueba", y no se como ocultar esta clase de carpetas, necesitio mostrar solo los sitios y los directorios en los sitios, sin exponer las carpetas de configuración o archivos de configuración.¿alguien puede ayudarme?Estoy trabajando con alfresco 4.2.c