The situation is about document level security. A sample document would be like the following
{
"create_time": 1500000000,
"title": "xxxxxxxxxxxxxxxxxxx",
"access_group": ["g1", "g2716", "g3018"]
}
Say we got ten thousands groups.
It's easy for a super-admin (no group filter) or normal user (several group filters) searching documents, but when it comes to some special users with access to thousands of groups, the search performance declined significantly.
Is there any suggestions to improve performance of this situation? Thank you for help!