RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory
.getRepositoryService();
String queryString = "PATH:\"/app:company_home//*\" "
+ "AND (@cm\\:modified:"
+ interval
+ " OR "
+ "@cm\\:created:"
+ interval
+ ") "
+ "+ASPECT:\"cm:titled\" "
+ "-TYPE:\"cm:systemfolder\" -TYPE:\"folder\" "
+ "-TYPE:\"cm:thumbnail\" -TYPE:\"cm:failedThumbnail\" "
+ "-TYPE:\"app:filelink\" -TYPE:\"rule:rule\" -TYPE:\"fm:post\" "
+ "-TYPE:\"dl:task\" -TYPE:\"dl:simpletask\" -TYPE:\"dl:task\"";
// int batchSize = 5000;
//
// QueryConfiguration queryCfg = new QueryConfiguration();
// queryCfg.setFetchSize(batchSize);
// repositoryService.setHeader(new RepositoryServiceLocator()
// .getServiceName().getNamespaceURI(), "QueryHeader", queryCfg);
Query query = new Query(Constants.QUERY_LANG_LUCENE, queryString);
// Execute the query
QueryResult queryResult = repositoryService.query(STORE, query, false);
// Display the results
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows == null) {
System.out.println("No query results found.");
} else {
System.out.println("Results from query:" + rows.length);
}
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.