Hi I want to audit the sharepoint searches using Sharepoint object model... how to do it? using sharepoint object model how can i get the audited report for these searches. Thanks in advance.
What specific information do you need? SharePoint already comes with Search Usage Reporting.
You can track stuff like: - Queries per day over the previous 30 days. - Queries per month over the previous 12 months. - Top queries over the previous 30 days. - Queries per search scope over the previous 30 days.
I think you have a slight misunderstanding over what the search webparts do when they provide search results.
All the "fetching" of documents is done when the search crawler runs over the site. This can be audited by importing the stslogs into a database and limiting them down to the username the search crawler uses.
The search results webpart doing the actual search only looks at the index the search crawler creates. Auditing the results a search brings back could be done by a customised search results webpart that stores the url's provided by searches as they are completed, but I am not sure this would provide much value.