• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Elastic search facet search

Scheduled Pinned Locked Moved
General Discussion
2
4
297
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dvanmil
    last edited by 30 Apr 2023, 12:38

    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.

    D 1 Reply Last reply 30 Apr 2023, 18:25 Reply Quote 1
    • D
      dan @dvanmil
      last edited by 30 Apr 2023, 18:25

      @dvanmil

      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.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      D 1 Reply Last reply 30 Apr 2023, 19:53 Reply Quote 0
      • D dan referenced this topic on 30 Apr 2023, 18:29
      • D dan referenced this topic on 30 Apr 2023, 18:30
      • D
        dvanmil @dan
        last edited by 30 Apr 2023, 19:53

        @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?

        D 1 Reply Last reply 1 May 2023, 17:54 Reply Quote 0
        • D
          dan @dvanmil
          last edited by 1 May 2023, 17:54

          @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.

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post