掲示板
Rating score is set to 5 for all blog search results
11年前 に Durai pandian によって更新されました。
Rating score is set to 5 for all blog search results
Junior Member 投稿: 53 参加年月日: 12/10/26 最新の投稿
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.
11年前 に Tejas Kanani によって更新されました。
RE: Rating score is set to 5 for all blog search results
Liferay Master 投稿: 654 参加年月日: 09/01/06 最新の投稿
Which version of Liferay are you using ?
11年前 に Durai pandian によって更新されました。
RE: Rating score is set to 5 for all blog search results (回答)
Junior Member 投稿: 53 参加年月日: 12/10/26 最新の投稿
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;