04-20-2009 08:09 AM
Query query = queryManager.createQuery("//app:company_home//element(*, cm:content) [jcr:contains(@cm:author, 'Amit') ]", Query.XPATH);
Query query = queryManager.createQuery("select * from cm:content where jcr:path='//app:company_home' and @cm:author='Raj'", Query.SQL);
javax.jcr.query.InvalidQueryException: Query language sql is not supported
at org.alfresco.jcr.query.QueryManagerImpl.createQuery(QueryManagerImpl.java:79)
at org.alfresco.sample.FirstJCRClient.main(FirstJCRClient.java:52)
04-21-2009 04:34 AM
…//element…
would be horrendous (as I'm sure you've discovered) because it has to walk the entire hierarchy and look at the properties of every node do determine who authored a particular document. Lucene should be used for this type of query.04-22-2009 07:10 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.