// For the sake of speed, search for users in the index rather than
// querying the database directly.
Hits hits = UserLocalServiceUtil.search(companyId, firstName, middleName, lastName, screenName,
emailAddress, status, params, andSearch, first, liferayOneRelativeFinishRow, sort);
List<Document> documentHits = hits.toList();
logger.debug(
("filters firstName=[{0}] middleName=[{1}] lastName=[{2}] screenName=[{3}] emailAddress=[{4}] active=[{5}] andSearch=[{6}] startRow=[{7}] liferayOneRelativeFinishRow=[{8}] sortColumn=[{9}] reverseOrder=[{10}] hitCount=[{11}]"),
firstName, middleName, lastName, screenName, emailAddress, status, andSearch, first,
liferayOneRelativeFinishRow, sortField, sort.isReverse(), documentHits.size());