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.

Warning

These properties are specified internally and are experimental: they may change in any future version.

PropertyDefaultDescription
like.averagerating.isStoredfalseWhether the average rating is stored for likes.
like.averagerating.hintxobjectWhere 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=xobject

Both 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.

Related

Get Connected