Fórumok

Rating score is set to 5 for all blog search results

Durai pandian, módosítva 11 év-val korábban

Rating score is set to 5 for all blog search results

Junior Member Bejegyzések: 53 Csatlakozás dátuma: 2012.10.26. Legújabb bejegyzések
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.
thumbnail
Tejas Kanani, módosítva 11 év-val korábban

RE: Rating score is set to 5 for all blog search results

Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Which version of Liferay are you using ?
Durai pandian, módosítva 11 év-val korábban

RE: Rating score is set to 5 for all blog search results (Válasz)

Junior Member Bejegyzések: 53 Csatlakozás dátuma: 2012.10.26. Legújabb bejegyzések
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;