Follow the “Greetings!” new user on-boarding tutorial from @discobot.
Message #15 in the tutorial topic will say:
Click the search icon, type capybara into the box, and click “capybara in this topic” under the search input box.
The result is “No results found.”. I expect two messages to be found (#15, where the text “Try searching for the term “capybara” in this topic” is written, and the earlier message that has the capybara photo).
Searching for other terms does work. Searching the topic for “nasty”, for example, returns two posts.
The word “capybara” is found “in all topics and posts”. So it can be indexed.
I think this is severity 3; while it only affects a small number of users and is a mere cosmetic issue, it happens to a brand new user and leaves the impression that the search function is unreliable or the site is poorly maintained.
Again, just to be clear, the capybara photo was inserted into the message thread. Searching for the word capybara returns no results, event though it does appear in message #15.
P.S. I didn’t want to muddy the water, but in case it’s important: the modified message with the capybara photo is no longer there in my thread. I don’t know how it got reverted. This is such a specific and unlikely issue, I would think it’s just a one-off thing for me except for the May 2017 report from another user. But I’m OK if you feel that it is best to just archive this topic without further time spent on it, if multiple people are unable to repeat it.
It looks like you have to explicitly select the “Search in this topic” option. I just ran through the tutorial, and when it got to that point, I searched for “capybara”:
…and pressed Enter:
However, if I return to the search and click on the “capybara in this topic” option:
The tutorial does say (emphasis mine):
Try searching for the term “capybara” in this topic
…but I agree that it’s not obvious. I suspect the tutorial was written while Discourse still supported “search as you type”, so the search result would appear before you even pressed return. (Also, I believe “search as you type” also searched private messages).
I did this. see OP point #4 (also, #6 & #7). See also the check box is checked in the screen shot of the mobile site I posted.
So far it seems no one has been able to reproduce the error I’m getting. I suspect there’s some corruption in my discobot tutorial message thread. Or else god is a capybara and I’m on their naughty list.
I did it right away. I mean, I completed the tutorial in one sitting. Discobot added the ‘search for capybara’ post at 8:57AM, and I replied :herb: at 9:10AM (August 25, 2022). I filed this same bug on internals.rust-lang in the intervening 15 minutes…
I just tested with Konqueror instead of Firefox. I’ve never used Konqueror on this laptop before, so I figured it would rule out any browser weirdness. I have the same results:
When I search the thread for “nasty”, it shows the correct two results. So the thread is indexed; indeed, one of the “nasty” results is the same discobot result that has "capybara" in it, so that post is indexed. It’s weird.
At this point, probably the only useful result from this would be if it helps find some problem with the search index or something. I’m happy to do any tests that would be useful, or I’m happy to drop it whenever if it’s run its course.
I created an account and ran through the tutorial as well. When I searched for Capybara the first time, I did not select “in this topic” to see what search returns I would get by default. I only got replies from other users noting they had not found ‘capybara’:
OK, I am very sorry about this. The problem exists between the keyboard and the chair.
My current problem is just due to the ​ in the middle of capybara:
319 Try searching for the term "capy​bara" in this topic
I completely missed that zero-width addition. That explains why searching the topic doesn’t find that word currently, and as Simon King explained, message #1 was already reverted so the true capybara is now gone.
As for my initial problem, I’m happy to assume that was just me hitting Enter instead of selecting this topic, and leave it at that.
In my latest follow-up test I copy-and-pasted the text, so I inadvertently copied the #8203; as well. So, I’m embarrassed but hopefully haven’t wasted too much of your time. Thanks for all the help.
One addition that could make it very clear is to have a new instance of Discourse include a prewritten topic from discobot saying “Oops, wrong capybara!” and giving instructions to go back to the private message and search the topic, not the whole site.
If Discourse has other such meta topics pre-installed then this is probably a quick thing to add, otherwise it would be more effort than it’s worth, possibly. Just a thought.