Random-seeming results from settings search

AI-generated summary

Random-seeming results from settings search

The discussion revolves around the ineffectiveness of Discourse’s settings search feature. ganncamp shared a search result for “cheer points tuning” which yielded unrelated results. JammyDodger explained that the “Fuzzy Matching” feature is causing the issue, matching anything with the letters “C*H*E*E*R” in order. However, this feature seems inconsistent, as searching for “Google” yields only relevant results, while “cheer” returns unrelated results.

JammyDodger also suggested that the /admin/plugins page is a better place to find all of a plugin’s settings. pfaffman pointed out that the fuzzy matching seems absurd and only works when the search term is not present in site_settings.yml.

The issue has been addressed, and blake published a fix in a recent commit: https://github.com/discourse/discourse/commit/26b3c63c746b8cfe94a77c08e37ad7eefdf1470d.

I’ve asked in the past for the admin settings to be reorganized to be more discoverable. I was essentially shouted down and told it was unnecessary because of search. Here’s what I got today looking for the cheer points tuning.

I don’t see how anything in the first page is related to cheers, either directly or indirectly

8 Likes

We have Fuzzy Matching now, which has admittedly picked up a couple of comments for being a little too fuzzy… :slight_smile: It essentially matches anything with C*H*E*E*R in, in that order.

I think the best place to grab all of a plugin’s settings is from the /admin/plugins page:

Though we are hoping to do some organisational work to the settings in the near future, which should hopefully give you exactly what you’ve been asking for. :slight_smile: :crossed_fingers:

6 Likes

What? That makes no sense at all. Searching “Google” shows only things having to do with Google, but “cheer” appears to be anything with those letters, which seems bizarre.

The good news, that seems like “fuzzy matching” is that “ga auto” finds these things, which seems like a huge improvement.

I’m stumped by “cheer” though.

Wait. I think I see “cheer” does not appear in site_settings.yml, so it then does the absurd fuzzy match that you’re talking about.

2 Likes

It also searches the descriptions too, so all the score value ones are there in the results:

Just way down under the Plugin tab. :frowning:

2 Likes

Thanks for bringing this up, @ganncamp. I just published a fix that addresses this very issue.

https://github.com/discourse/discourse/commit/26b3c63c746b8cfe94a77c08e37ad7eefdf1470d

9 Likes

This topic was automatically closed after 5 days. New replies are no longer allowed.