Like Storage Properties
Last modified by Eleni Cojocariu on 2026/08/12 16:21
Reference
Two properties of xwiki.properties decide whether the average rating of likes is stored, and where. Storing it also stores the total number of votes on the liked page, which is what makes a "most liked pages" HQL query possible.
| Property | Default | Description |
|---|---|---|
| like.averagerating.isStored | false | Whether the average rating is stored for likes. |
| like.averagerating.hint | xobject | Where it is stored. xobject keeps it in an xobject on the liked page, solr keeps it in the average rating Solr core. |
like.averagerating.isStored=true
like.averagerating.hint=xobjectBoth properties are read from xwiki.properties only, so they are deliberately absent from the wiki administration.
FAQ
Why is the average rating of a like always 1?
Because a like is stored as a Rating whose vote is always 1.