Navigation

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

    Searching for user by email address returns a lot more results than I'd expect

    Q&A
    user search elasticsearch
    0
    2
    51
    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.
    • dan
      dan last edited by

      I'm using the Elasticsearch search engine and when I search in the admin UI for a particular email, like user@example.com, I get a lot of responses back. I'm surprised, I'd expect to only get back the user with that email address.

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

      1 Reply Last reply Reply Quote 0
      • dan
        dan last edited by

        Hiya.

        You can see the elasticsearch query if you expand advanced in the UI.

        Because of the way that we tokenize the search string, it is likely that a query like user@example.com will match more than just the user with the email address you are entering.

        If you want to match only the email address in the UI, the easiest way to do it is to preface the query with email:. So email:user@example.com.

        Hope that helps.

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post