10-27-2009 08:12 AM
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
// Create a query object, looking for all items with alfresco in the name of text
Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:" + searchText + "\"");
// Execute the query
final Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
QueryResult queryResult = repositoryService.query(STORE, query, false);
// Display the results
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
searchText
10-27-2009 06:37 PM
10-28-2009 03:25 AM
+@cm\:name:*file1*
and if you additionally want to reduce the search to the direct descendants of company home:
+@cm\:name:*file1* +PATH:"/app:company_home/*"
This site http://wiki.alfresco.com/wiki/Search explains a lot.
10-28-2009 10:56 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.