Configuring search analytics

Excluding items from analytics reports

Excluding queries containing or matching specific terms

  • Queries that exactly match specific terms can be removed from the analytics reports by adding the term to the reporting blacklist.

  • Queries containing specific terms can be removed from the analytics reports by adding the term to the reporting stop words list.

Excluding queries from specific IP addresses

  • Queries that exactly match specific IP addresses can be removed from the analytics reports by adding the term to the reporting blacklist.

Configuring search analytics alerts

The analytics system can be configured, per search package or results page, to send out notification emails which provide a regular analytics summary, or trend alert notifications.

Email notifications can be configured for the following:

  • Query report summary: The notification frequency can be chosen.

  • Trend alert notifications: Trend alerts can be sent out when a query spike is detected to allow real-time action to be taken as required.

The alerts are sent to one or more email addresses.

To configure email alerts for analytics, view the result page details then select edit analytics email settings from the analytics and reporting section.

The email settings provide the following options:

  • Email sender: Configures the email address used as the from address for analytics emails. Must contain a single valid email address.

  • Email addresses: Configures the list of recipients for analytics alerts. Must contain a comma separated list of email addresses.

  • Query report summary: Configures the frequency of query report alerts.

  • Trend alert email: Enables email alerting for trend alerts.

Please note that Funnelback must be configured with a valid SMTP server during installation for email to be sent successfully. SMTP settings can be adjusted in the global configuration by a system administrator if required.

Search analytics update options

Funnelback provides a number of configuration options that affect how analytics is built.

Report update options

Option Description


Configure the maximum memory (Java heap size) allocated for analytics updates.


Control whether reports for the collection are updated on a scheduled basis.


Controls how logging of IP addresses is performed.

Query report options

Option Description


Length of time range (in days) the analytics data miner will go back from the current date when mining query and click log records.


Advanced setting: controls the amount of data that is stored by query reports.


Advanced setting: controls the rate at which the query reports system checkpoints data to disk.


Disable incremental reports database updates. If set all existing query and click logs will be processed for each reports update.

Trend alerts options

Option Description

Trend alerts: Control the minimum number of occurrences of a query required before a day pattern can be detected.

Trend alerts: Control the day pattern detection threshold.


Trend alerts: Disable query spike detection for a collection


Trend alerts: Disable query spike detection for a profile


Trend alerts: Control the minimum number of occurrences of a query required before a hour pattern can be detected.


Trend alerts: Control the hour pattern detection threshold.

Query log naming and rotation

When operating Funnelback in a multi-server configuration, some care must be taken to ensure query logs are available to the trend alerts system. For performance reasons trend alerts requires that archived log files be identified with a date stamp in the file name (for example queries.log.20090902.gz), as these date stamps are used to restrict the logs required for pattern analysis.

Standard practice within a multiple server set-up would be to transfer all query log files to a server responsible for analytics, retaining the date stamp in the file name and adding a hostname to ensure log names are unique.

Please also note that trend alerts may fail to detect some queries when processing historical data for collections which have been updated less frequently than once per month. This issue can be rectified by manually splitting any query log files spanning more than a day into individual logs with date stamps.

Analytics reports hardware requirements

The table below gives minimum hardware requirements for processing various query log volumes.

Number of queries Minimum memory Minimum hard disk space

>= 20 million over 3 years



10 million



5 million



<= 1 million



When updating query reports for a search package with a large number of queries the analytics.max_heap_size collection setting should be increased.