Migrate search analytics to another collection

Background

This article shows how analytics can be moved from one collection to another by copying across the search and click history and rebuilding the analytics database on the target collection.

This is sometimes necessary if the collection name changes and existing analytics data needs to be imported into the new collection, or if a standalone collection is replaced with a meta collection and analytics history needs to be transferred to the new collection.

Process

  1. Move the query and click log files from $SEARCH_HOME/data/<SOURCE-COLLECTION>/archive to $SEARCH_HOME/data/<DESTINATION-COLLECTION>/archive

  2. Log into the administration interface and switch to <DESTINATION-COLLECTION>

  3. Rebuild the analytics database for <DESTINATION-COLLECTION>