# Docs search is broken

**URL:** https://forum.yunohost.org/t/docs-search-is-broken/18379
**Category:** Support & doc
**Tags:** english
**Created:** [January 6, 2022, 3:22pm UTC](https://forum.yunohost.org/t/docs-search-is-broken/18379 "2022-01-06T15:22:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jedie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jedie](https://forum.yunohost.org/u/jedie)
#### Post date: [January 6, 2022, 3:22pm UTC](https://forum.yunohost.org/t/docs-search-is-broken/18379/1 "2022-01-06T15:22:08Z")

</div>

I would like to search the docs with “hostname”… The [“Adcanced search” with the String “hostename”](https://yunohost.org/de/search?q=hostname) has 0 hits… But [search by “hostnam”](https://yunohost.org/de/search?q=hostnam) has 7 hits:

 ![grafik](https://forum.yunohost.org/uploads/default/original/2X/0/0fa52a1d7989c3610da4ebbab75543ca9bad25ff.png)

Same with the normal search: But this is also broken, because the user didn’t see anything!

 ![grafik](https://forum.yunohost.org/uploads/default/original/2X/7/7eb10cb214755232ed5f0207c720f29b0fa0e635.png)

 ![grafik](https://forum.yunohost.org/uploads/default/original/2X/a/ae7a551ed5538abb24aa16b38b99e29c7b4559f6.png)

---

<div class="post-metadata">

### Author: ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)
#### Post date: [January 6, 2022, 11:41pm UTC](https://forum.yunohost.org/t/docs-search-is-broken/18379/2 "2022-01-06T23:41:05Z")

</div>

Sharp eyes for spotting the difference 🙂 It seems not to work with a number of keywords. I see the same behaviour with `host` (… hosts… is mentioned in the results) vs `hosts` (0 results)

Perhaps some normalizing grammar check, that is not suited for IT applications? `hostname` could be seen as a typo for `host name` which does give results as well.

Sometimes my incomplete search strings get abbreviated to another word that is contained in the search term.

I guess it’s a matter of configuration, or an upstream bug. The page has Grav in the footer, but I didn’t see a search bar on the Grav-website.

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [January 7, 2022, 1:51pm UTC](https://forum.yunohost.org/t/docs-search-is-broken/18379/3 "2022-01-07T13:51:25Z")

</div>

Findings to be added to [Improve searching the documentation · Issue #1949 · YunoHost/issues · GitHub](https://github.com/YunoHost/issues/issues/1949).

> [@wbk](#):
>
> I guess it’s a matter of configuration, or an upstream bug.

It’s definitely related to the search plugin we use : [GitHub - trilbymedia/grav-plugin-tntsearch: Powerful indexed-based full text search engine powered by the TNTSearch library](https://github.com/trilbymedia/grav-plugin-tntsearch)

Issue [With update to Grav 1.7.22, TNTSearch now appears to fail when you type in an entire word/string · Issue #121 · trilbymedia/grav-plugin-tntsearch · GitHub](https://github.com/trilbymedia/grav-plugin-tntsearch/issues/121) may be a good lead… Let’s disable `stemmer` and re-index… and fixed! … I think?

> [@wbk](#):
>
> I guess it’s a matter of configuration, or an upstream bug. The page has Grav in the footer, but I didn’t see a search bar on the Grav-website.

[https://learn.getgrav.org/](https://learn.getgrav.org/) 😇  
… and I discover they changed their search plugin to promote a paid one… 😕

---

<div class="post-metadata">

### Author: ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)
#### Post date: [January 7, 2022, 2:45pm UTC](https://forum.yunohost.org/t/docs-search-is-broken/18379/4 "2022-01-07T14:45:17Z")

</div>

> [@tituspijean](#):
>
> > [@wbk](#):
> >
> > I didn’t see a search bar on the Grav-website.
> 
> [https://learn.getgrav.org/](https://learn.getgrav.org/) 😇  
> … and I discover they changed their search plugin to promote a paid one…

🤣
