I have document library named Pages where all my pages are there. Every page of this library has rating control. The rating Column of the library shows stars for pages which confirms that the ratings are being saved.
Currently i am implementing search functionality for the site and want to display page rating in the search results.
I created the Managed properties for both crawled properties(OWS_averageRating and OWS_RatingCounter) and added managed properties in fetched properties of Search Core Results WebPart.
But, in the results the rating and rating Count tags are empty.
Here is the xml, which i get from Search Core Results Web Part:
<All_Results>
<Result>
<id>1</id>
<workid>3490</workid>
<rank>78000306</rank>
<title>Test</title>
<author_multival>System Account</author_multival>
<author>System Account</author>
<size>178578</size>
<url>http://Server/Pages/Test.aspx</url>
<urlEncoded>http%3A%2F%2Fserver%2FPages%2FTest%2Easpx</urlEncoded>
<description></description>
<write>26/11/2012</write>
<sitename>http://server/Pages</sitename>
<collapsingstatus>0</collapsingstatus>
<hithighlightedsummary>summary </hithighlightedsummary>
<hithighlightedproperties>
<HHTitle>test</HHTitle>
<HHUrl>http://server/Pages/<c0>Test.aspx</c0></HHUrl>
</hithighlightedproperties>
<contentclass>STS_ListItem_850</contentclass>
<isdocument>True</isdocument>
<picturethumbnailurl></picturethumbnailurl>
<serverredirectedurl></serverredirectedurl>
<rating></rating>
<ratingcount></ratingcount>
<fileextension>ASPX</fileextension>
<ows_metadatafacetinfo></ows_metadatafacetinfo>
<popularsocialtags />
<imageurl imageurldescription="Web Page">/_layouts/images/html16.png</imageurl>
</Result>
<TotalResults>1</TotalResults>
<NumberOfResults>1</NumberOfResults>
</All_Results>
Am i missing something. I have used these links to get ratings in search :
http://todd-carter.com/post/2010/10/05/pimp-document-ratings-within-sharepoint-search-results/
Could someone help me with this please....
Regards
Mohit Leekha