Search
Swarm's search feature combines user, group, project, and file path searching, with full content indexing provided by the optional Helix Server Search Tool (previously known as P4Search).
You can download the Helix Server Search Tool. See its release notes for more information.
You configure Swarm search with the following configuration block in the SWARM_ROOT/data/config.php
file:
<?php
// this block should be a peer of 'p4'
'search' => array(
'maxlocktime' => 5000, // 5 seconds, in milliseconds
'p4_search_host' => '', // optional URL to Helix Search Tool
),
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.
The p4_search_host
keys specifies the URL to your installed Helix Server Search Tool. When configured, Swarm issues API calls to the Helix Server Search Tool to take advantage of its full content indexing.