Fix search document content detection