Search queries tracking

mnoGoSearch supports query tracking.

When performing search, the front-end uses the qtrack table to store the following data: the query words, the client IP address, the number of found documents, time spent for search (in milliseconds) and the current UNIX timestamp (in seconds from epoch). Other search parameters are stored in the qinfo table.

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

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;