Search queries tracking

mnoGoSearch supports query tracking.

When doing a search, the front-end uses the table qtrack to store the query words, the client IP address, a number of found documents and the current UNIX timestamp in seconds and the table qinfo to store all search parameters.

To enable tracking, add the trackquery parameter to the DBAddr command (see DBAddr) in your search template.

Note: If you use searchd, you should add this parameter in your searchd.conf file.

Query tracking is useful to have statistics about your search engine usage. To make a search queries summary, you may execute, for example, this SQL expression:


SELECT qwords,count(*),sum(found),avg(found) FROM qtrack GROUP BY qwords;