I've fixed my issue. It's come down to two things.
1. I needed to enable read_private_videos and read_private_documents for my roles.
add_action( 'init', 'mbr_modify_roles' );
function mbr_modify_roles () {
global $wp_roles;
$roles = $wp_roles->get_names();
foreach ( $roles as $role => $value ) {
$wp_roles->add_cap( $role, 'read_private_videos' );
$wp_roles->add_cap( $role, 'read_private_documents' );
}
}
2. I've added private to the allowed indexes to keep on indexing and updating index. Patch attached below.
Index: relevanssi.php
===================================================================
--- relevanssi.php (revision 152)
+++ relevanssi.php (working copy)
@@ -429,7 +429,8 @@
}
// END added by renaissancehack
- if ($post_status != 'publish') {
+ $index_statuses = array('publish', 'private');
+ if ( ! in_array( $post_status, $index_statuses) ) {
// The post isn't public anymore, remove it from index
relevanssi_remove_doc($post, true);
}