Wiki source code of Like Storage Properties
Last modified by Vincent Massol on 2026/11/30 17:29
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
13.1 | 1 | 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. |
![]() |
1.1 | 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 | |||
![]() |
2.1 | 16 | Both properties are read from ##xwiki.properties## only, so they are deliberately absent from the wiki administration. |

