Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom Reports for Smart Search Queries View modes: 
User avatar
Member
Member
Armysniper89 - 5/5/2011 2:56:24 PM
   
Custom Reports for Smart Search Queries
Is there a way to create a report in the Reporting tool in CMSDesk to track the types of queries being searched in the Smart Search dialog or Search Results page?

Also, I have documents that are attached to the Article document type as a field level value. Is there a way to track when people download those? Does it show up in the "File Downloads" report?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 5/11/2011 8:46:46 AM
   
RE:Custom Reports for Smart Search Queries
Hello,

Regrettably, there is currently no build in feature which would allow you to achieve such a functionality. However you can alter the search results web part to log all the queries. The control is located in the file CMSModules\SmartSearch\Controls\SearchResults.ascx.cs. The best approach would be to log the queries in the Search() method and save it into files (the same way as we do with web analytics). We recommend this approach because you would get a lot of database entries if you would save every query on a high traffic site into the database right away. That's way it is better to save the logs into files at first and process them with a scheduled task for example every few hours (or minutes as per requirement) and save them into a custom table, so it can be displayed in the reporting module of Kentico. During the processing you can only count for example the quantity words so you will save database space and only save word - count pairs.

The document download count is increased every time you download a document from Kentico using our getfile/getattachment etc. methods.

Best regards,
Boris Pocatko