Like Storage Properties
Version 13.1 by Vincent Massol on 2026/11/25 21:39
Reference
Storing the average rating 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.