Hi, I'm using Alfresco 1.2 and I'm trying to access alfresco from a JAVA application to get content, but I've some problem.I'm trying to use WebServices implementation to access the repository and following your good examples on Wiki I've write this sample code
// Start the session
AuthenticationUtils.startSession(USERNAME, PASSWORD);
// Get a reference to the respository web service
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
// Create a query object, looking for all items with alfresco in the name of text
Query query = new Query(QueryLanguageEnum.lucene, "@cm\\:name:\"GEmap11\"");
…etc.
// End the session
AuthenticationUtils.endSession();
In my Alfresco repository there's is a content with filename GEmap11.pdf ( and no title and description properties set ); if I tried to search "GEmap11" on standard Web Client ( put the text on top-right box ) the file is correctly searched and show on the result.If I try to access from my JAVA web Application with the code previous indicated no results are shown; the same null result has been returned if i try to search with this code:
// Create a query object, looking for all items with alfresco in the name of text
Query query = new Query(QueryLanguageEnum.lucene, "@cm\\:name:\"GEmap11*\"");
Only if I try to access with exactly filename the Lucene Query found my document
// Create a query object, looking for all items with alfresco in the name of text
Query query = new Query(QueryLanguageEnum.lucene, "@cm\\:name:\"GEmap11.pdf\"");
can someone help my to understand the problem ? thanks in advance