AnsweredAssumed Answered

Problem searching via web-service-client

Question asked by mistergerf on Aug 1, 2006
Latest reply on Aug 1, 2006 by andy
Here's my code:

         
AuthenticationUtils.startSession(credentials.getUsername(), credentials.getPassword());
Store store = new Store(StoreEnum.workspace, StoreName);
String queryString = "@cm\\{http\\://www.alfresco.org/1.0\\}name:\'conditioninspection*\"";
Query query = new Query(QueryLanguageEnum.lucene, queryString);
QueryResult queryResult = WebServiceFactory.getRepositoryService().query(store, query, true);
ResultSet rs = null;
ResultSetRow[] rows = null;
int rowCount = 0;
          
if (queryResult!=null)
{
   rs = queryResult.getResultSet();
   if (rs!=null)
         {
            rows = rs.getRows();
            if (rows!=null)
              rowCount = rows.length;
          }
}


I don't get any rows when I know there's a document with a name containing "conditioninspectkion".

Any ideas on what am I doing wrong ?

Outcomes