cancel
Showing results for 
Search instead for 
Did you mean: 

WS Query not returning same result as Web Client SrchSvc

tmotley
Champ in-the-making
Champ in-the-making
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,                "(+@\\{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
2 REPLIES 2

putodemonio
Champ in-the-making
Champ in-the-making
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 Smiley Wink

andy
Champ on-the-rise
Champ on-the-rise
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