Fórum
Rating score is set to 5 for all blog search results
Durai pandian, modificado 11 Anos atrás.
Rating score is set to 5 for all blog search results
Junior Member Postagens: 53 Data de Entrada: 26/10/12 Postagens Recentes
In blog search result score is set to 5 for all blog.
need to customise average rating there.
please help me with this
Regards,
Durai.
need to customise average rating there.
please help me with this
Regards,
Durai.
Tejas Kanani, modificado 11 Anos atrás.
RE: Rating score is set to 5 for all blog search results
Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
Which version of Liferay are you using ?
Durai pandian, modificado 11 Anos atrás.
RE: Rating score is set to 5 for all blog search results (Resposta)
Junior Member Postagens: 53 Data de Entrada: 26/10/12 Postagens Recentes
Thank u friend, I got solution by editing my search.jsp file with the following code:
float averageScore = (float)RatingsStatsLocalServiceUtil.getStats(BlogsEntry.class.getName(), entry.getEntryId()).getAverageScore()/5;
float averageScore = (float)RatingsStatsLocalServiceUtil.getStats(BlogsEntry.class.getName(), entry.getEntryId()).getAverageScore()/5;