Hi all again!I have a new problem developing a query search in my Java code. I´m seeking some contents in alfresco, but it returns to me empty, only with the "Path" property fill. I´m doing this:
………….
………….
Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:my_folder//*\" + @cm\\:name:plantilla*");
// Execute the query
final Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
QueryResult queryResult = repositoryService.query(STORE, query, false);
// Display the results
ResultSet results = queryResult.getResultSet();
ResultSetRow[] rows = results.getRows();
System.out.println("La busqueda da algo asi:");
if(rows != null){
for(ResultSetRow row : rows){
for (NamedValue namedValue : row.getColumns()){
if (namedValue.getName().endsWith("path") == true)
System.out.println(namedValue.getValue());
if (namedValue.getName().endsWith(Constants.PROP_CREATED) == true)
System.out.println(namedValue.getValue());
else if (namedValue.getName().endsWith(Constants.PROP_NAME) == true){
System.out.println(namedValue.getValue());
else if (namedValue.getName().endsWith(Constants.PROP_DESCRIPTION) == true){
System.out.println(namedValue.getValue());
………….
………….
………….
}
The only result that doesn´t null is the "path" property.What could be happen??Thak you very much!