Fixes text search for "secured" documents