This function takes the following parameters:
Parameter block containing the search request
Candidate entry
Filter to check
1 to verify access to the entry before checking, 0 otherwise