Am using Algolia for search engine and I would like to fetch result from algolia as follows
If visibility = everyone, then it will show to all users
If visibility = private, then it will only for logged in user
To achieve that, i tried
filter=“visibility:everyone” OR (“visibility:me” AND “user.username:testuser”)
But it return below error
“message”: “filters: filter (X AND Y) OR Z is not allowed, only (X OR Y) AND Z is allowed”,
How can i alter the condition to achieve above scenario?
Any help will appreciate and thank in advance.