src/main/java/com/blockscore/models/Candidate.java
public PaginatedResult<WatchlistHit> searchWatchlists(EntityType entityType, Double similarityThreshold) {
    Map<String, String> queryOptions = new HashMap<String, String>();
    queryOptions.put("candidate_id", getId());

    if (entityType != null) {
      queryOptions.put("match_type", String.valueOf(entityType));
    }

    if (similarityThreshold != null) {
      queryOptions.put("similarity_threshold", String.valueOf(similarityThreshold));
    }

    WatchlistSearchResults results = restAdapter.searchWatchlists(queryOptions);

    //wrap the result's data with PaginatedResult to make v5.0 transition simpler
    return new PaginatedResult<WatchlistHit>(results.getMatches(), results.getCount(), false);
  }
public PaginatedResult<WatchlistHit> searchWatchlists(EntityType entityType, Double similarityThreshold) {
    Map<String, String> queryOptions = new HashMap<String, String>();
    queryOptions.put("candidate_id", getId());

    if (entityType != null) {
      queryOptions.put("match_type", String.valueOf(entityType));
    }

    if (similarityThreshold != null) {
      queryOptions.put("similarity_threshold", String.valueOf(similarityThreshold));
    }

    WatchlistSearchResults results = restAdapter.searchWatchlists(queryOptions);

    //wrap the result's data with PaginatedResult to make v5.0 transition simpler
    return new PaginatedResult<WatchlistHit>(results.getMatches(), results.getCount(), false);
  }
Performs a watchlist search for this candidate.

@param entityType  the type of entity
@param similarityThreshold  the accepted threshold of similarity
@return the paginated watchlist hit results