# New user tutorial search for "capybara" finds nothing

**URL:** https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494
**Category:** Support
**Created:** [August 29, 2022, 4:33pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494 "2022-08-29T16:33:19Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [August 29, 2022, 4:33pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/1 "2022-08-29T16:33:20Z")

</div>

How to repeat:

1. Go to a hosted Discourse instance, and sign up as a new user. I signed up at [internals.rust-lang.org](http://internals.rust-lang.org).

2. Follow the “Greetings!” new user on-boarding tutorial from @discobot.

3. Message #15 in the tutorial topic will say:

> [@On another topic](https://meta.discourse.org/t/17259/15):
>
> _psst_ … I’ve hidden a surprise in this topic. If you’re up for the challenge, **select the search icon**
> 
> ![](https://global.discourse-cdn.com/meta/original/3X/3/d/3d13d028ac36ade7a3802f7c7e0fad1a913a5203.png) at the top right ↗ to search for it.
> 
> Try searching for the term “capy​bara” in this topic

1. Click the search icon, type _capybara_ into the box, and click “ **capybara** in this topic” under the search input box.

2. 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).

3. Searching for other terms _does_ work. Searching the topic for “nasty”, for example, returns two posts.

4. The word “capybara” _is found_ “in all topics and posts”. So it can be indexed.

5. I found another report of this problem from May 2017: [Search broken in internals forums - meta - Rust Internals](https://internals.rust-lang.org/t/search-broken-in-internals-forums/5266) So I don’t think it’s a new problem, or unique to my situation.

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.

Kind regards,

Tim

---

<div class="post-metadata">

### Author: ![discobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discobot/32/68978_2.png) [@discobot](https://meta.discourse.org/u/discobot)
#### Post date: [August 29, 2022, 4:33pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/2 "2022-08-29T16:33:22Z")

</div>

Hi! To find out what I can do, say `@discobot display help`.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [August 29, 2022, 4:42pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/3 "2022-08-29T16:42:08Z")

</div>

I tried to repro, but the bot doesn’t want to display the tutorial 😢

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/c/c/4cc308838ae435b14b35b43e2b1d549d80b1e8d1.png)

* * *

edit: nevermind, it replied after 3 long minutes (that’s too long!).

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 29, 2022, 4:43pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/4 "2022-08-29T16:43:51Z")

</div>

It worked for me:

 ![Screenshot_20220829_174244_com.android.chrome](https://global.discourse-cdn.com/meta/original/4X/d/b/3/db3754acca1f873a42ef5b384c674e05f1492294.jpeg)

I am on my phone though, so perhaps a retry on desktop may be in order for thoroughness.

**Update:** Worked fine on desktop too.

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [August 29, 2022, 4:58pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/5 "2022-08-29T16:58:41Z")

</div>

Thank you for testing! I used Firefox on OpenSUSE desktop. I also just checked on my phone’s Firefox, and had the same “no results found”:

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/0/6/80611a384fdfe9d800ec4f6f3b768040ada45deb.jpeg)

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.

---

<div class="post-metadata">

### Author: ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)
#### Post date: [August 29, 2022, 11:58pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/6 "2022-08-29T23:58:52Z")

</div>

I was actually wondering why “capybara” was the most searched term on my site for a while but now it all makes sense 😵🤣

I clearly didn’t follow the tutorial the whole way through

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [August 30, 2022, 7:44am UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/7 "2022-08-30T07:44:16Z")

</div>

Same happened to me. But I was so sure there is some glitch in Google or similat that I created an informative topic about capybaras.

Later I felt myself… a bit stupid 😂 But now I know much more what kind creature capybara is. So win-win situation?

---

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [August 30, 2022, 10:38am UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/8 "2022-08-30T10:38:49Z")

</div>

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”** :

 ![Starting the search](https://global.discourse-cdn.com/meta/original/4X/1/d/c/1dc7e5c5bcd31c4e42ff27f80c3293542339aa57.png)

…and pressed Enter:

 ![Search results after pressing Enter](https://global.discourse-cdn.com/meta/original/4X/d/2/1/d21b32e11adde3761c1812a0ca42a297fe2a63aa.png)

However, if I return to the search and click on the **“capybara in this topic”** option:

 ![Search just this topic](https://global.discourse-cdn.com/meta/original/4X/f/3/7/f379addf539e89d26d35c53c3b39eaf902752174.png)

…it works!

 ![Screenshot from 2022-08-30 11-23-28](https://global.discourse-cdn.com/meta/original/4X/0/d/2/0d2bed6aa5d1884266cd72aec1cbcaddbad557ba.png)

The tutorial does say (emphasis mine):

> Try searching for the term “capy​bara” **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).

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [August 30, 2022, 3:19pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/9 "2022-08-30T15:19:27Z")

</div>

> [@simonk](#):
>
> 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”** :

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.

---

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [August 30, 2022, 4:30pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/10 "2022-08-30T16:30:38Z")

</div>

> [@TimDolores](#):
>
> 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.

That’s very interesting. I just looked at my test thread, and indeed, the capybara has disappeared! The edit history shows that discobot edited the post, but the actual change is gone:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/2/3/523d9c70c1707db465ec8eba82d7a1bbd0e0b317.png)

This does appear to be deliberate:

> <https://github.com/discourse/discourse/blob/main/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/new_user_narrative.rb#L193>

…which gets called when the discobot state machine moves to a new state:

> <https://github.com/discourse/discourse/blob/main/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb#L200>

The cleanup is only supposed to happen when you move out of the `tutorial_search` state, which happens when you reply with the 🌿 emoji. Did you do that in your thread?

Do you remember how long you waited after the post was edited before performing the search? Is it possible that the server was backed up and hadn’t indexed the post by the time you searched?

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [August 30, 2022, 5:07pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/11 "2022-08-30T17:07:07Z")

</div>

> [@simonk](#):
>
> The cleanup is only supposed to happen when you move out of the `tutorial_search` state, which happens when you reply with the 🌿 emoji. Did you do that in your thread?

Yes, I did complete the tutorial.

> [@simonk](#):
>
> Do you remember how long you waited after the post was edited before performing the search? Is it possible that the server was backed up and hadn’t indexed the post by the time you searched?

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](https://internals.rust-lang.org/t/search-broken-in-private-messages/17261) 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:

 ![shot-20220830.2](https://global.discourse-cdn.com/meta/original/4X/e/e/9/ee96c4a667bd7dfb0fa34b7e8eb96d2ba693c519.png)

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.

Thanks for looking.

Tim

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [August 30, 2022, 5:16pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/12 "2022-08-30T17:16:47Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [August 30, 2022, 5:49pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/13 "2022-08-30T17:49:34Z")

</div>

If you enter the word **capybara** yourself into the private message thread and then search for it, does it show up? If you’re aiming for a perfect reproduction, you could use the exact text:

> <https://github.com/discourse/discourse/blob/main/plugins/discourse-narrative-bot/config/locales/server.en.yml#L320>

---

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [August 30, 2022, 5:59pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/14 "2022-08-30T17:59:27Z")

</div>

For what it’s worth, I just created an account on [internals.rust-lang.org](http://internals.rust-lang.org) to test, and it worked for me:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/e/c/3ecb3d6d29fdf9b43120827c97d1bc8e28b9d247.png)

---

<div class="post-metadata">

### Author: ![MarkDoerr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markdoerr/32/549630_2.png) [@MarkDoerr](https://meta.discourse.org/u/MarkDoerr)
#### Post date: [August 30, 2022, 7:21pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/15 "2022-08-30T19:21:37Z")

</div>

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’:

 ![2022-08-30-capybara-search-results](https://global.discourse-cdn.com/meta/original/4X/3/6/f/36f6ae97a939f01363cf2f60daf3bcbff9eefca9.jpeg)

However once I selected ‘in this topic’ and reran the search, as the tutorial requests, the result was as expected, just as @simonk posted.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 1, 2022, 3:18am UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/16 "2022-09-01T03:18:53Z")

</div>

So not a bug, but perhaps the directions need to be clearer about searching _within the current topic?_

The UI for search changed @pmusaraj so perhaps the instructions need to be updated as well? I’m not sure.

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [September 2, 2022, 6:51pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/17 "2022-09-02T18:51:08Z")

</div>

No, no UX or docs changes needed. It’s clear how to search within the topic. This bug report is about something else, which apparently is unreproducible so it’s not too important.

Thanks!

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [September 2, 2022, 7:31pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/18 "2022-09-02T19:31:49Z")

</div>

Simon King, thanks for the suggestion! I added this reply there:

> [@On another topic](https://meta.discourse.org/t/17259/19):
>
> Test: Try searching for the term “capy​bara” in this topic

Searching the topic for `test` returns that message (and one other from discobot), but searching for `capybara` still returns no results:

|

 ![Screenshot_20220902-145615_Firefox Beta](https://global.discourse-cdn.com/meta/original/4X/d/e/9/de933fa36bcfe8722d16a8577ed63a1dff823b3a.jpeg) | ![Screenshot_20220902-145552_Firefox Beta](https://global.discourse-cdn.com/meta/original/4X/7/9/b/79b08b2dfa2599fb8e5214b595f1771cb3ed3d12.jpeg)|

It seems unique to this specific post. I don’t know how to explain the 2017 report, unless it was user error of some kind.

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [September 2, 2022, 7:44pm UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/19 "2022-09-02T19:44:48Z")

</div>

OK, I am very sorry about this. The problem exists between the keyboard and the chair.

My current problem is just due to the `&#8203;` in the middle of `capybara`:

`319 Try searching for the term "capy&#8203;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.

Tim

---

<div class="post-metadata">

### Author: ![TimDolores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timdolores/32/108596_2.png) [@TimDolores](https://meta.discourse.org/u/TimDolores)
#### Post date: [September 3, 2022, 11:23am UTC](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494/20 "2022-09-03T11:23:41Z")

</div>

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.

[Next page](https://meta.discourse.org/t/new-user-tutorial-search-for-capybara-finds-nothing/237494.md?page=2)
