apply_filters( 'relevanssi_comment_author_to_index', string $comment_author, int $comment_ID )
Filters the comment author before the comment is indexed.
Parameters
$comment_author
(string) The comment author display name.
$comment_ID
(int) The comment ID.
More information
For each comment, Relevanssi indexes both the comment author display name and the actual comment text. This hook filters the author name, and relevanssi_comment_content_to_index
handles the content.
Both are then concatenated together separated with spaces.
If you don’t want to index comment authors but do want to include comment content, you can do this:
add_filter( 'relevanssi_comment_author_to_index', '__return_empty_string' );