As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I am trying to fetch the sum of all files size uploaded by the individual users of alfresco. I have used CMIS API
http://localhost:8080/alfresco/api/-default-/public/search/versions/1/search is a post request and the body is
You may try using the stats REST API:
http://127.0.0.1:8080/alfresco/s/api/solrstats
{ "resultset": [ ], "queryInfo": { "numberFound": "190" ,"totalRows": "0" ,"sum": "14794650" ,"max": "3737049" ,"mean": "81738" }, "metadata": [ { "colIndex": 0, "colType": "String", "colName": "name" }, { "colIndex": 1, "colType": "Numeric", "colName": "sum" }, { "colIndex": 2, "colType": "Numeric", "colName": "count" }, { "colIndex": 3, "colType": "Numeric", "colName": "min" }, { "colIndex": 4, "colType": "Numeric", "colName": "max" }, { "colIndex": 5, "colType": "Numeric", "colName": "mean" } ] }
If that is not enough, you need to use directly SOLR for the query, since CMIS doesn't support that feature.
Can you tell me what do those fields indicate? numberFound,sum,max,mean what do they represent.Also the metadata has some fields.What does they indicate?
Hope this helps:
https://angelborroy.wordpress.com/2017/07/18/extrating-simple-stats-from-alfresco-5/
"metadata" is used as a legend for "resultset" when using the "facet" parameter in the URL