Wiki source code of Like Storage Properties
Last modified by Eleni Cojocariu on 2026/08/12 16:21
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | 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. | ||
| 2 | |||
| 3 | {{warning}} | ||
| 4 | These properties are specified internally and are experimental: they may change in any future version. | ||
| 5 | {{/warning}} | ||
| 6 | |||
| 7 | |=Property|=Default|=Description | ||
| 8 | |##like.averagerating.isStored##|##false##|Whether the average rating is stored for likes. | ||
| 9 | |##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. | ||
| 10 | |||
| 11 | {{code language="properties"}} | ||
| 12 | like.averagerating.isStored=true | ||
| 13 | like.averagerating.hint=xobject | ||
| 14 | {{/code}} | ||
| 15 | |||
| 16 | Both properties are read from ##xwiki.properties## only, so they are deliberately absent from the wiki administration. |