#8197 Site admin searches don't do full matches

v1.9.0
closed
None
General
nobody
2018-09-24
2018-03-30
No

Searching for john doe doesn't match on "doe" at all. And searching for foo@bar.com splits on the @ and matches on either part.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2018-03-30
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2018-03-30

    Fixed on db/8197

    Test the /nf/admin/search_users and /nf/admin/search_projects pages. Now everything you enter should match, no matter the spaces or @s. And wildcards should still work too. user test will match test user X which isn't ideal, but you can manually add quotes if you want a literal match.

    A more perfect solution I think would require changing many text fields in solr to string fields, e.g. email_addresses_t -> _s and display_name_t and project_shortname_t and project_name_t etc. Those really aren't full text fields, just strings, and then escaping spaces with \ might work. But that would be a very big undertaking.

     
  • Kenton Taylor - 2018-03-30
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2018-09-24
    • Milestone: unreleased --> v1.9.0
     

Log in to post a comment.