<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Most Viewed and Liked Documents in alfresco  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72876#M23552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, it is really not recommended to access the Alfresco database at a low level. What is wrong with just using the APIs that Alfresco provides for accessing the creator, creation date and name of a document? You can even use Alfresco query features to filter out any documents created by the System or admin users...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is - by default and without any customisation - no tracking of the "most viewed" documents, so you cannot query for that out-of-the-box. The "like" rating is stored as a property on the document itself, so you can simply to a query for that and sort based on the value. The property in question should be&amp;nbsp;cm:likesRatingSchemeCount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2018 10:47:09 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-03-22T10:47:09Z</dc:date>
    <item>
      <title>Most Viewed and Liked Documents in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72875#M23551</link>
      <description>Hi Everyone,By using this query i am getting document creator and created dateSELECT distinct n.audit_creator as creator,p.string_value as document_name,date(n.audit_created) as created_on&amp;nbsp;From alf_node AS n,alf_qname AS q,alf_node_properties as p&amp;nbsp;WHERE n.type_qname_id=q.id AND p.node_id=n.id AND p.</description>
      <pubDate>Thu, 22 Mar 2018 09:59:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72875#M23551</guid>
      <dc:creator>sandeepreddy1</dc:creator>
      <dc:date>2018-03-22T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Most Viewed and Liked Documents in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72876#M23552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, it is really not recommended to access the Alfresco database at a low level. What is wrong with just using the APIs that Alfresco provides for accessing the creator, creation date and name of a document? You can even use Alfresco query features to filter out any documents created by the System or admin users...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is - by default and without any customisation - no tracking of the "most viewed" documents, so you cannot query for that out-of-the-box. The "like" rating is stored as a property on the document itself, so you can simply to a query for that and sort based on the value. The property in question should be&amp;nbsp;cm:likesRatingSchemeCount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 10:47:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72876#M23552</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-22T10:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Most Viewed and Liked Documents in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72877#M23553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-avatarid="2617" data-externalid="" data-online="false" data-presence="null" data-userid="73554" data-username="afaust" href="https://community.alfresco.com/people/afaust" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;" rel="nofollow noopener noreferrer"&gt;afaust&lt;/A&gt;&lt;SPAN style="color: #8bc34a; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;IMG alt="Moderator" class="" height="16" src="https://migration33.stage.lithium.com/resources/statics/rolebadges/roleBadge-4-1004-1479735707524.png?a=1479735707542" style="color: #8bc34a; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 3px -3px 0px;" title="Moderator" width="16" /&gt;,&lt;/P&gt;&lt;P&gt;Can you please suggest me, to find API for Most Viewed documents and Liked Documents ..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 10:15:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72877#M23553</guid>
      <dc:creator>sandeepreddy1</dc:creator>
      <dc:date>2018-03-23T10:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Most Viewed and Liked Documents in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72878#M23554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using java , than you can use the nodeService to get the details of property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if javascript than you can simply, use node.properties["&lt;SPAN style="color: #666666; background-color: #edf5ff; font-size: 13px;"&gt;cm:likesRatingSchemeCount&lt;/SPAN&gt;"].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 10:39:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72878#M23554</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-03-23T10:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Most Viewed and Liked Documents in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72879#M23555</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I know this thread is old and I haven't figured out a suitable solution. However I got "closer". One can count the "ratings" associations. This way there is no filter for the node-type that was rated/liked, but at least this helps to somehow aggregate the amount of ratings/likes a node ("with a name" and "of any kind") got.&lt;BR /&gt;&lt;BR /&gt;SELECT parent_node_id AS nodeDbId, nodeName.string_value AS nodeName, COUNT(parent_node_id) AS likes&lt;BR /&gt;FROM public.alf_child_assoc AS assocs&lt;BR /&gt;JOIN alf_node AS nodes ON (parent_node_id = nodes.id)&lt;BR /&gt;JOIN alf_node_properties nodeName ON (nodes.id = nodeName.node_id AND nodeName.qname_id IN (SELECT id FROM alf_qname WHERE local_name = 'name'))&lt;BR /&gt;JOIN alf_qname AS assocType ON (assocType.id = assocs.type_qname_id AND assocType.local_name = 'ratings')&lt;BR /&gt;GROUP BY parent_node_id, nodeName.string_value&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:51:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/most-viewed-and-liked-documents-in-alfresco/m-p/72879#M23555</guid>
      <dc:creator>Muffex</dc:creator>
      <dc:date>2022-11-22T14:51:21Z</dc:date>
    </item>
  </channel>
</rss>

