AnsweredAssumed Answered

WS Query not returning same result as Web Client SrchSvc

Question asked by tmotley on Apr 13, 2007
Latest reply on Sep 17, 2007 by andy
May be some one is experiencing this problem also, or can help me fix it:

I have a simple file called 'tom.html' in my alfresco 2.0 repository. I can find it fine using the advanced search options on the web client, searching by title name "tom".  However, when I query for it using the Alfresco Web Services, the file cannot be found. There are no errors thrown to the console or logs. Here is my query:

Query query = new Query(Constants.QUERY_LANG_LUCENE,
QueryResult results = internalAlfWSRef.getRepoService().query(internalAlfWSRef.getWorkspaceStore(), query, true);

Is this a defect in the WS impl, or am I doing something wrong? FYI, I copied my query from the Alfresco Sample code.

many thanks