String espacio = "BARCELONA";
String consulta = "@\\{http\\://www.alfresco.org/model/content/1.0\\}name:\"" + espacio + "\"";
Query query = new Query();
query.setLanguage(Constants.QUERY_LANG_LUCENE);
query.setStatement(consulta);
try {
//Ejecutamos la peticion y recogemos los resultados
QueryResult qrst = WebServiceFactory.getRepositoryService().query(ALF_STORE, query, false);
ResultSet x = qrst.getResultSet();
resultadoBusqueda = x.getRows();
String espacio = "BARCELONA";
String consulta = "@cm\\:name:\""+espacio+"\"";
Si usas otro namespace lo tendrás que sustituir por cm que es el equivalente al que has puesto tú pero resulta más cómodo (ojo con las barras, si la sintaxis está mal puede hacer cosas raras sin dar error).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.