Enable Statistics Collection
The solrfacetsearch extension supports collecting statistical data for queries sent to the Solr server..
Basic Configuration
Procedure
Collected Data
If you enable the collection of statistical data, then the following information is stored to the Solr server once each query is executed:
-
Date
-
Index configuration
-
Language
-
Query
-
Number of results
Use a Cronjob to Collect Statistics
Context
You should create cron job to store aggregated values into the database. The following information is than stored: date, index, configuration, language, query, average number of results for query, and count.
Procedure
Query for Statistics
To get the statistics you can use the following query:
SELECT {PK} FROM {SolrQueryAggregatedStats}
SolrQueryAggregatedStats contains the following attributes:
-
time
-
indexConfig
-
language
-
query
-
count
-
avgNumberOfResults


button.