Revert search to old live search pattern

I do like Discourse. I am a pioneer of Discourse in my company which transformed into a community thankfully by you, Team.

Is the search box not live anymore? From today the search has become different:

  1. Search in the current topic option appears.
  2. option number 1 now is the default (strange).
  3. By default live search shows tags and users, why users?
  4. Live search by topics needs to be activated after click. This point is the one important of all that today implemented. Early it was enough.

I tried to find related topics about feature requests similar to current changes and found nothing. I would like to return the old search back, please.

9 Likes

Thanks for the feedback! I really like the search changes, but the extra click is definitely a little more friction than we used to have.

I wonder if we can maybe show results without the click again, but also keep this extra click for ā€œin all topics and postsā€ at the top, when relevant:

Screen Shot 2021-10-12 at 10.53.14 AM

:point_up: I do like this style much better than the old checkbox we had

15 Likes

It was never live on mobile view anyway? :thinking:

Only if youā€™re viewing / in a topic. But this was the old behaviour too, right? :thinking:

You are right. That was discussed. Unfortunately I used mobile to surf Discourse 2-3 times.

Sorry, I meant the option to search in current topic is new (and unnecessary in most cases, probably it is useful only for very long topics). And it is on the first place. Old search worked fine. Now I cannot understand it. It is unable to use hot keys to find a topic to add it during composing.

1 Like

Thank you for the reply. Live searching is a killer feature. No reasons to avoid it due to better visual style. Search must be simple and fast first. Fastly accessed search box is needed for fast search results. I cannot agree that current version is better. No live search and exessive clicks.

4 Likes

I agree with this. Itā€™s now taking me forever to search for a topic, and then search within that topic; something I do many times a day.

4 Likes

I donā€™t feel this a big problem because hitting ENTER is a pretty standard way to searching and with this two level search we have a more clearer look.
First level: users, categories, groups, tags
Second level: topics, posts

1 Like

No, this isnā€™t new. Weā€™ve had this for a while as a feature, if you are in a topic, a category, a tag or your PMs, you would previously see a checkbox to search in that specific context. What is new is that the checkbox has been replaced with a ā€œkeyword in this topicā€ row.

This is a legitimate complaint. I worked on this change to search and I very much expected this to be raised as an issue. As @Don points out just above, you can hit Enter to search all topics. You can also use up/down arrows to navigate the available search results, so for a search in the current topic you would need to hit Arrow Down + Enter.

We are well aware this is not an easy adjustment especially for existing heavy users of search, itā€™s difficult to adjust to the change because it feels much slower. But we made this change for a few reasons:

  • Better performance: launching a full search of all posts on every keystroke is expensive, the added friction to users comes with a big advantage for site managers. This might not have a lot of repercussions for self-hosters managing one site, but over many, many Discourse instances, the savings can be noticeable.
  • Simpler list of results: previously we had multiple columns in this search dropdown with the topic results on the left, and category/tag/user/group results on the right. That didnā€™t look great, there was a lot of different types of elements visible all at the same time.
  • Search as navigation: With the new changes, it is very quick to go to a specific category/tag/group/user without leaving the keyboard. For example, you can easily type part of a tag/categoryā€™s name and then use Arrow Down + Enter to navigate to that tag/category page. (Previously, this took many key presses.)
  • Support for search history: this hasnā€™t been implemented yet, but we plan to add this soon, for authenticated users only, of course.

So, hopefully the search feels good after a short period of adjustment. That is our goal, but sometimes itā€™s hard to make changes without causing at least some friction.

Do you mean the a shortcut isnā€™t working to add a search result to a topic? It works for me, although there is a regression (will fix shortly): it posts a relative URL in the composer, where previously it was an absolute URL.

16 Likes

This advice made me change my mind from ā€˜hate the new searchā€™ to ā€˜itā€™s ok and I applaud the lower performance impactā€™. It would be fantastic if this advice would be shown in the placeholder, which now just says ā€˜Searchā€™.

8 Likes

I will probably adjust to this, but I do have one minor thing.

I search for a word

image

Click on all topics and posts

image

Click on the only result and then I want to search within that topic, but I donā€™t get the ā€œsearch this topicā€ after clicking on it.

The hamburger menu takes me to the Advanced Search and the only way I can get a prompt to search this topic is by putting a space after the search word.

Maybe Iā€™m remembering incorrectly, but it seems that after clicking on a topic, I would get the prompt to search in the topic without altering the search word.

4 Likes

The reason why you arenā€™t seeing it is because the search panel is showing you the cached results from the previous screen. If you type something new in the input field, you should see the ā€œsearch this topicā€ option.

2 Likes

Hm I see where you came from with this update, but Iā€™m on the fence here.
My estimated behaviour would be:

  • when Iā€™m on the homepage, the default search realm is ā€œall topicsā€
  • when Iā€™m in a category/topic, that is the default search realm

In both cases, I would like to see the results of that realm instantly without a second click - just like before. Changing the realm via 1klick is ok though.

The hack ā€œjust hit enterā€? Yes this could work, but it rivals ā€œshow, donā€™t tellā€ and ā€œdonā€™t make me thinkā€ in terms of UX design.
The old search just felt snappier, more respnsive, more intuitive to use. Now I have to think about my behaviour.

6 Likes

Ok, I understand, I have to do the extra step of putting in a space. Thanks for your response.

This.

I think this hack used by almost every website. Google, Youtube, Facebook etcā€¦ They just add some suggestion to the search but the process is same like Discourse search. I know this is unusual in Discourse but it is just a habit. Iā€™ve got pretty positive feedback from my community about the new search usage. I think this is add some good benefit us in performance. :slightly_smiling_face:

5 Likes

Thank you for the reply.

The annoying hints, tags, and user listings seem to appear for the sole purpose of distracting attention from the fact that search no longer works (until additional user actions applied).

Yes, an extra press on Enter is not difficult. But why did the special search items appear on the screen? Does any ordinary user usually use them? I donā€™t think so. Right now, the pop-up tags and names of unknown users dropped down in packs is like an intrusive McDonaldā€™s kiosk. I donā€™t want fried potatoes, but they offer them to me at every click.

Honestly, I would have been sympathetic to a pinned topic stating in advance that Discorse have to turn off live search because of performance issues. Those who own hosting have the option to stay on the version with the current settings for now.

But now there is no chance to roll back to beta6 or beta5. Rebuild crashes.

What does ctrl+enter do? I clicked when it appeared for the third time. There was nothing in the search box yet, so I was redirected to a blank screen with an error message.

I already sent the bug report about the cross-reference link bug today. You are right, there is such a problem. I wrote about hotkeys, that they are not so effective now, because there were additional clicks and I have to distract the screen to make sure that the keyboard arrow is selected the right option. Previously, the user didnā€™t care, because the default search in the current topic was off and it wasnā€™t easy to reach and enable it.

3 Likes

Oh, okay. Were most servers already struggling with Discourseā€™s search functionality as is?

1 Like

We have observed that pointless search work was the bulk of search work our servers did. Our servers did mountains of search work, on some sites it was the 2nd or 3rd most expensive route when it comes to total cost.

Our servers are very very fast, we can eat a lot of this pain. Self hosters on the other hand were paying a price that was way too high.

This is not in our plans, sure we will tweak and improve the design, possibly make the hinting richer and so on. However we have no plans to sail this ship back to the harbor.

Cheese has moved, I strongly recommend living with this for 14 days, providing feedback about little tweaks we can make to further improve the situation.

Cheese will not be moving back.

18 Likes

Thank you for the clarification. The problem is not technical. As a SaaS owner, Discourse pay is too much for pointless searches during a live search. Each userā€™s move has a cost. Because Discourse is open source, I agree with the statement that the maintainer should have fewer costs. As a community member, I have to support the development team.

Anyway, the previous version of the search was configurable. Currently, some options (by tag, by a user, etc) became active while they used to be disabled by default.

Iā€™m expressing the feelings of my users because they are not in this forum. I suppose most active users here are admins, developers, or designers from their self-hosted installations, so I hope my feedback is useful.

7 Likes


this was how i first saw the new search box. In my mental model everything below the box are results. So the search button looked like it was another type of result. I think design guidelines should prevent this kind of situation.
From my intuition the search button should be on the right next to the search box. Instead there is this search reset button. I only recognized it exits just now.

To my surprise google is also like this. It also has this weird search reset button that I never realized existed. The difference is, that google at least clearly distinguishes the search button from the results.

I think discourse did many things right from a UX perspective. But there are also some odd things. Sometimes changes are an improvement and sometimes they are just changes.

I think the root cause for this is, that changes are done in an ad hoc manner without a design system that is based on clearly defined guidelines. It grew from the intuitive knowledge its creators acquired over the years. The paradigms behind the UI decisions are not clearly verbalized and are made in a quasi dictatorial fashion.

4 Likes

A design system would be fully dictatorial, no? When it comes to this change specifically, what guidance could a design system have provided?

Are there examples of this? If this ever comes up feel free to ask about it on Meta, thereā€™s some reasoning behind every change as far as I knowā€¦ but itā€™s true that we donā€™t announce the reasons for every change beyond the commit message that made the change.

Weā€™re quasi-dictatorial in that weā€™re the ones who will make the final call on what makes it into Discourse (someone has to), but there are a lot of factors that are considered. Performance was already mentioned, but input from our customers plays a major role because Discourse wouldnā€™t exist without them. We also operate Meta to specifically gather this type of feedback from the wider community of self-hosters, and weā€™ll lurk #site-feedback categories on large sites (especially large migrations from other platforms) to get an idea of how things are going for regular users.

9 Likes