Configure Swarm to use Helix Search

Standard Swarm searches can be extended to search file content and changelist description by using the Helix Core Search API.

Tip

Configure Swarm search to use your Helix Search service with the following configuration block in the SWARM_ROOT/data/config.php file:

<?php
// this block should be a peer of 'p4'
'search' => array(
'p4_search_host' => 'http://myhelixsearch.mydomain.com:1601', // optional URL to Helix Search host 'maxlocktime' => 5000, // 5 seconds, in milliseconds
),

p4_search_host

The p4_search_host configurable specifies the URL of your Helix Search server. When configured, Swarm issues API calls to Helix Search to take advantage of its file content and description indexing.

maxlocktime

The maxlocktime key specifies the maximum amount of time, in milliseconds, that any table within the Helix server should be locked while performing fstat command searching. Increasing this value might allow better search results at the expense of potentially blocking other queries on the Helix server. Decreasing this value impacts the Helix server less, but may be insufficient for returning the desired search results.