How Can OpenSearch Users Prevent Sensitive Information From Appearing in Search Results?

When organizations use OpenSearch to index customer records, internal documents, and business information, protecting sensitive data is an important concern.

For example, a search result might contain personal information, email addresses, phone numbers, or confidential business details that should only be visible to authorized users.

What approaches do you recommend for identifying sensitive information before indexing and controlling access to it in search results?

Would combining data masking, role-based access control, and document-level security help reduce this risk?

I’d appreciate practical recommendations and examples from people who have implemented these protections.

@rom_c I suggest starting with Document-level Security and Field-level Security.

This always depends on the use case.

Please be aware that DLS queries won’t work if they rely on fields that are masked.