Lo hace perfecto, y me muestra el listado de documentos y carpetas de forma perfecta, pero cuando voy a realizar una búsqueda ya sea por un campo o por varios, me encuentra los documentos que me debe encontrar pero no se trae las propiedades de los mismos.
Query query = new Query(Constants.QUERY_LANG_LUCENE,
"+PARENT:\"workspace://SpacesStore/"+ nodes[0].getReference().getUuid() + "\" +TEXT:\"" + searchValue + "\"");
// Execute the query
QueryResult queryResult = repositoryService.query(STORE, query, false);
// Display the results
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows != null)
{
// Get the infomation from the result set
for(ResultSetRow row : rows)
{
String nodeId = row.getNode().getId();
ContentResult contentResult = new ContentResult(nodeId);
for (NamedValue namedValue : row.getColumns())
….
Query query = new Query(Constants.QUERY_LANG_LUCENE,
"+PARENT:\"workspace://SpacesStore/"+ nodes[0].getReference().getUuid() + "\" +TEXT:\"" + searchValue + "\"");
// Execute the query
QueryResult queryResult = repositoryService.query(STORE, query, false);
// Display the results
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows != null)
{
// Get the infomation from the result set
for(ResultSetRow row : rows)
{
String nodeId = row.getNode().getId();
ContentResult contentResult = new ContentResult(nodeId);
ResultSetRowNode node = row.getNode();
Reference ref1 = new Reference(STORE, node.getId(), null);
Query query2 = null;
Node[] noderesult = null;
noderesult = WebServiceFactory.getRepositoryService().get(new Predicate(new Reference[] { ref1 }, STORE, query2));
//Recorremos cada nodo-hijo devuelto, normalmente 1.
for (int x1 = 0; x1 < noderesult.length; x1++) {
Node row1 = noderesult[x1];
//Recorremos las Propiedades
for (NamedValue namedValue : row1.getProperties())
…
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.