cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in getting all descendants with filtered properties

mandarj
Champ in-the-making
Champ in-the-making
Hi,

I am trying to get the response from url where I would like to retrieve all the descendants of a "Company_Home" root in the repository.

As I need to retrieve only two properties: cmis:name & cmis:baseTypeId from each <entry> in the response, I tried below url, but somehow it is not filtering out other properties which I don't want.

http://hostname:8080/alfresco/s/cmis/s/workspace:SpacesStore/i/{id}/descendants?depth=-1&filter=cmis...

Can anyone help me to figure out why it is not filtering out other properties? The specification says when we specify property filter, it returns only those properties.

Also, since, the repository contains large number of documents, it takes lot of time for the response. Is there any better way (url) for the quicker response where I need only these two properties of each entry.

Thanks in advance,
Mandar
4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator
What version of Alfresco are you running? This works fine for me in Alfresco 4.0.d Community using either the URL you specified (deprecated in Alfresco 4.x) or the new OpenCMIS-based URL.

Jeff

mandarj
Champ in-the-making
Champ in-the-making
Hi,

I am using 3.4.

Thanks,
Mandar

andy
Champ on-the-rise
Champ on-the-rise
Hi

I am not sure how this is implemented under the covers.
The alternative is to use a query but this will be eventually consistent if you use SOLR in V4.0 or later.
Query may work around your issue in the short term.

Andy