04-15-2009 09:06 AM
<INFO>
<ANIMALS>
<ANIMAL>
<NAME>CAT</NOME>
<COLOR>BLACK</COLOR>
</ANIMAL>
<ANIMAL>
<NAME>DOG</NOME>
<COLOR>BROWN</COLOR>
</ANIMAL>
<ANIMALS>
</INFO>
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
String path = "PATH:\"/app:company_home/cm:ZOO/cm:INFO/cm:pets.xml\" AND TEXT:\"DOG*\"";
Query query = new Query(Constants.QUERY_LANG_LUCENE, path);
Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
QueryResult queryResult;
queryResult = repositoryService.query(STORE, query, false);
org.alfresco.webservice.types.ResultSet resultSet = queryResult.getResultSet();
org.alfresco.webservice.types.ResultSetRow[] rows = resultSet.getRows();
06-09-2009 06:39 AM
org.alfresco.webservice.util.ISO9075
in the following way:
String path = "PATH:\"/app:company_home/cm:"+ISO9075.encode("ZOO")+"/cm:"+ISO9075.encode("INFO")+"/cm\:name:pets.xml\" AND TEXT:\"DOG*\"";
In your query I think that you needed to add name property in your last condition of the query with cm\:name.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.