Following this post :
Capturing failed search criteria..., with the version 1.8.2 (or may be 1.9) in development,
described here, I prepare a new feature for AjaxSearch:
AjaxSearch logging & the AjaxSearch logs manager module
The goals of this new feature are to:
- keep an eye on what users are searching for in order to help you manage your home page and navigation in general.
- extract the most used search terms that could be use as meta tag keywords for ranking
- catch the end-user comment regarding unsuccessfull searches
- detect unsuccessfull searches and may be incorrect AS snippet call

and play again them
The detailed specifications are listed below. You
could run a first implementation step here.
Thanks for your suggestions, advices or feedbacks about this feature.
==== Capturing failed search criteria and search logs - AJAXSEARCH-3
&asLog - ajaxSearch log [ 0 | 1 | 2 ]
0 : disallow the ajaxSearch log recording (default)
1 : failed search requests are logged
2 : all ajaxSearch requests are logged
The user searches are stored in the database table $modx_table_prefix."ajaxsearch_log"
These data are not for the end user only for the site administrator.
Informations stored per each search are the following:
- id : internal id of the search request
- searchstring : the search terms used for the search
- nb_results : number of results found
- results : document ids found
- as_call : ajaxSearch snippet call used
- as_select : select statement used (could be directly re-used thru phpmyadmin)
- date : date and hour of the request
- comment : user comment regarding the search
- ip : user IP
The table could be drop without any impacts on the AjaxSearch behaviour. Simply, if the asLog parameter is set and the table inexisting, the table is rebuilt.
A module will be provided later to manage these search datas. But we could imagine the following features:
- drop the table
- delete (successfull, unsuccessfull, all) searches executed before a specific date
- delete (successfull, unsuccessfull, all) searches executed before N days
- give me as meta tag keywords, the N most used (successfull, unsuccessfull) search terms
- replay a specific search with a new debug level
I plan to add a "did you find what you are looking for?" comment available for the user to catch the reasons of unsuccessfull (or successfull but not relevant) search. The user comment will be added into the table with the other data.
So, around comments, we could add the following features in the ajaxSearch log manager:
- delete uncommented (successfull, unsuccessfull, all) searches
- filter view with commented (successfull, unsuccessfull, all) searches