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
|