AnsweredAssumed Answered

Problem reading webproject content using web service

Question asked by ponson on Sep 19, 2007
Hi Andy,

I am trying to retrive xml contents from web projects using web service.

When trying to execute the following query,

Store STORE = new Store("avm", "DmlTest");
String pathQuery="PATH:\"*\"";
Query queryCategory = new Query("lucene", pathQuery);
QueryResult queryResultCat = repositoryService.query(STORE, queryCategory, false);
….

I am getting the following result:

{http://www.alfresco.org/model/system/1.0}store-protocol : avm
{http://www.alfresco.org/model/content/1.0}modifier : admin
{http://www.alfresco.org/model/content/1.0}name : www
{http://www.alfresco.org/model/system/1.0}node-dbid : 2082
{http://www.alfresco.org/model/content/1.0}modified : 2007-09-14T12:07:04.232+05:30
{http://www.alfresco.org/model/content/1.0}owner : admin
{http://www.alfresco.org/model/content/1.0}created : 2007-09-14T12:07:04.232+05:30
{http://www.alfresco.org/model/system/1.0}store-identifier : DmlTest
{http://www.alfresco.org/model/system/1.0}node-uuid : UNKNOWN
{http://www.alfresco.org/model/content/1.0}creator : admin
{http://www.alfresco.org/model/content/1.0}path : /{http://www.alfresco.org/model/content/1.0}www


I wanted to search within this "cm:www" space. So i issued the following query.

String pathQuery="PATH:\"/cm:www/*\"";

This returns no result. Can you suggest me any ideas?
I am sure that i have another space called "cm:avm_webapps" under "cm:www".

Outcomes