Search
Swarm's search feature combines user, group, project, and file path searching, with full content indexing provided by the optional Helix Search Tool (previously known as P4Search).
Tip
You can download the Helix Search Tool. See its release notes for more information.
You configure the Swarm's searching with the following configuration block
in the
file:
SWARM_ROOT
/data/config.php
<?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 Versioning Engine 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 Versioning Engine.
Decreasing this value impacts the Helix Versioning Engine less, but may be
insufficient for returning the desired search results.
The p4_search_host
keys specifies the URL to your
installed Helix Search Tool. When configured, Swarm issues API calls to
the Helix Search Tool to take advantage of its full content indexing.