Search function: possible bug with usernames

(Kamal Patel) #1

If you search discourse meta for a username, there is one case where certain matching names don’t show up.

For example: search for “lee” in order to find “Lee_Ars”, and his name won’t show up. On my forum, searching for “stabby” in order to find “StabbyRaccoon” won’t work. If you search “stab” or “stabbyrac” then his name comes up though.

(Jeff Atwood) #2

Probably some subtlety of the Postgres full text indexing.

(Sam Saffron) #3

There is a bug with _ escaping it seems, I will get that fixed.

Also ordering is kind of crappy, we should always order so

  1. Exact match first
  2. Prefer username match (prolific posters first)
  3. Order most prolific posters (when looking at fullname).

(Sam Saffron) #4

I am closing this cause the bug is fixed (search for sam)

I still think we can tweak the ordering some, and improve the amount of date we display.

(Sam Saffron) #5