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

    Elastic search facet search

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    287
    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

      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.

      danD 1 Reply Last reply Reply Quote 1
      • danD
        dan @dvanmil
        last edited by

        @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 Reply Quote 0
        • danD dan referenced this topic on
        • danD dan referenced this topic on
        • D
          dvanmil @dan
          last edited by

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

          danD 1 Reply Last reply Reply Quote 0
          • danD
            dan @dvanmil
            last edited by

            @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
            • First post
              Last post