Allow Web part to do search for user's most popular documents


Add a Boolean property to the Web part to tell it to be used to determine individual user’s top documents as well. When the parameter was true the code would simply need to determine and pass in the user id as a stored proc parameter and GetTopHits would filter on the csUsername column in the table. This would probably require A/D authentication on the SharePoint site to populate the csUsername column so it would only work for intranets and the like.