/**
     * Callback for plugin activation, outputs admin notice
     *
     * @since 1.0
     */
    function activation()
    {
        if (false == searchwp_get_setting('activated')) {
            searchwp_set_setting('activated', 1);
            // reset the counts
            if (class_exists('SearchWPIndexer')) {
                $indexer = new SearchWPIndexer();
                $indexer->update_running_counts();
            }
            ?>
			<div class="updated">
				<p><?php 
            echo sprintf(__('SearchWP has been activated and the index is now being built. <a href="%s">View progress and settings</a>', 'searchwp'), esc_url(admin_url('options-general.php?page=searchwp')));
            ?>
</p>
			</div>
			<?php 
            // trigger the initial indexing
            do_action('searchwp_log', 'Request index (activation)');
            $this->trigger_index();
        }
    }