WS Query not returning same result as Web Client SrchSvc
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 05:24 PM
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:
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
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, "(+@\\{http\\://www.alfresco.org/1.0\\}title:tom*)" );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
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2007 03:52 AM
I have the same problem and I've posted it too…
I'm waiting for an answer too
If I find a solution, i'll write it here
I'm waiting for an answer too
If I find a solution, i'll write it here


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 05:55 AM
Hi
It looks like the name space string is wrong. Try using the default prefix or the correct name space, e.g.:
@cm\:name:tom*
Andy
It looks like the name space string is wrong. Try using the default prefix or the correct name space, e.g.:
@cm\:name:tom*
Andy
