Aqualogic Interaction API  
 

IPTSearchBestBetMaintenance.FindFirstTargetForTrigger Method 

Like the other Find calls, this method should not strictly be here. Given a Best Bet trigger string, this method returns the first best bet target. If the calling user does not have access to the first target document, or if the trigger does not exist, a null IPTSResult is returned. The IPTSResult returned will always have these fields: PortalCollection().Application(), PortalCollection().FolderACL(), PortalCollection().ReadACL(), ContentCollection().ACL(), and CollabCollection().ACL(), so those fields do not need to be retrieved.

IPTSResult FindFirstTargetForTrigger(
   string trigger,
   IPTSField[] arrFieldsToReturn
);

Parameters

trigger
- Query string
arrFieldsToReturn
- Array of fields to return.

Return Value

IPTSResult for the item, or null.

See Also

IPTSearchBestBetMaintenance Interface | com.plumtree.server.search.admin Namespace