Elastic search facet search
-
Hello,
For a user overview we want to support Facet search with roles and locked users counts in the facet filter. Does/can the elastic search installation support this somehow?
Thanks.
-
Thanks for using FusionAuth!
Currently roles should be available in the faceted search, as each registration is available as a nested object.
When you say 'locked', do you mean inactive (soft deleted) or locked via a user action as described here?
If it is the former, you should be able to look at the
active
attribute.If it is the latter, please review this open issue. Feel free to upvote and/or comment with more details on your use case.
-
-
-
@dan Thanks for the info. I think it's clear. For me it's not clear yet what my Product owner exactly means by "locked" indeed. But the difference in FusionAuth is clear to me.
Last question was (but this may not be clear from the question) whether the Elastic Search configuration would be able also to return a facet count. So when we retrieve the users, we also get returned facet values and their counts, in our case the roles and locked users, for example:
roles:
- admin (4)
- editor (2)
active:
- no (2)
- yes (3)
Elastic search supports facet search, but could this also work with FusionAuth by configuration? Or would it be nice to have and should we create a feature request for this in the issue management system?
-
@dvanmil Thanks for the clarification. Currently FusionAuth returns the
totalCount
as part of the user search results. You could use that, with multiple requests, to build the facet numbers.