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

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

Scheduled Pinned Locked Moved
Q&A
user search elasticsearch
0
2
2.1k
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
    dan
    last edited by 31 Aug 2021, 21:32

    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
    • D
      dan
      last edited by 31 Aug 2021, 21:33

      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 1
      2 out of 2
      • First post
        2/2
        Last post