Users Lucene Search Not Working for blocked:false
Last Updated:
Overview
Going by this documentation about the user search using the Lucene syntax, an admin should be able to use "blocked:false" and get the non-blocked users. But it returns nothing. This is very useful in viewing the non-blocked users to see which needs to be blocked. It works for "blocked:true", where it returns the blocked users.
This article explains this behavior.
Applies To
- Lucene syntax
- View users
Cause
Solution
To work around this, search using the following Lucene query to get all users that are not blocked:
NOT blocked:true
This way only blocked users are filtered out, but it is not reliant on finding an exact match for "blocked:false" present within the user's JSON.