How save the search query?

Hi All,

 I am using solr search plugin, i want to save the search query  searched by user or visitor. And like populate the results like Most popular words, Most popular tags  like that.

 I checked with solr, but it not possible to save the query. Please give suggestion to start..