I have created a Site Definition in Visual Studio 2012 based on Community web template. The problem is that when I deploy the site definition and create a new community choosing my new template the search results of this community are different from the OOB web template Community site.
Let me explain; following the instructions in DotNetMafia Corey Roth Post I noticed that resultRow object has 49 Keys in the Dictionary using this code
keywordQuery.QueryText = "WebTemplate=COMMUNITY -ContentClass=urn:content-class:SPSPeople"; 4 of these keys are ResultTypeId = 28, CommunityMembersCount = 1, CommunityRepliesCount = 0, CommunityTopicsCount = 0.
It turns out that the result on my created community using my custom site definition using this query
keywordQuery.QueryText = "WebTemplate=ComSiteDefinition -ContentClass=urn:content-class:SPSPeople" returns 44 Keys in the resultRow Dictionary ResultTypeId=11 instead of 28 and no CommunityMembersCount, RepliesCount and TopicsCount properties.
In the refiners appears "Sharepoint site" instead of Community.
Anyone has an idea how to solve this? Thank you very much.