thefox
January 10, 2024, 1:34pm
1
Hi,
just wanted to enable the redisearch for our wiki. Unfortunately, it doesn’t show any results. Is there anything else I need to do?
Hi, i have the same issue with de lastest version in docker.
They have two issues:
opened 10:16AM - 15 Dec 23 UTC
Hello,
the search option of wiki is not working as shown in below,


opened 12:15AM - 22 Oct 23 UTC
```
erpnext 14.44.1
frappe 14.52.1
wiki 2.0.0
```
Wiki pages are publishe… d, but not guest accessible.
* All Wiki page routes are in the form of `wiki/page1`
* All Wiki pages are added to a Wiki Space with route `wiki`
* In Wiki Settings, the default space is the `wiki` space
When navigating to a Wiki page, i.e. `example.com/wiki/page1`, I have the Search Bar present. I can click it and execute a search, but generally I get no results.
* If I search for `Troubleshooting`, which I know that there are several pages with with `Troubleshooting` both in the title and the content of the page, I get no results. (see example 1)
* If I search for `wiki`, I get a random assortment of Wiki Page results that I can click on and navigate to, but the results are literally just the route of the page - the title and content are not present in the search results. (see example 2)
### Expected Behavior
I expect the search function to show relevant search results for terms that I know are present in the Wiki.
### Example 1:



### Example 2:



### Other info
I noticed that `Wiki Page` was not in the Global Search Settings list, so I added it, but nothing changed.
As far as I can tell, the search path once submitted to the server goes as such:
1. The HTTP Query contains parameter `cmd` of `wiki.wiki.doctype.wiki_page.search.search` which translates to the [`search` function located in `wiki/wiki/doctype/wiki_page/search.py`](https://github.com/frappe/wiki/blob/b70b44cf91e0b571142479667b1c9cdc724e0f1e/wiki/wiki/doctype/wiki_page/search.py#L18)
2. Since I don't have redis enabled in Wiki Settings, it defaults to the Frappe web search. This function calls `web_search` which is `from frappe.search import web_search`
3. This function is defined in the `frappe/frappe` Git Repository [here](https://github.com/frappe/frappe/blob/135fb6a486ac08ed5264038ba7dc77f04d21b8ed/frappe/utils/global_search.py#L494-L510)
4. This instantiates a new `WebsiteSearch` object with `index_name="web_routes"` as its sole parameter, then calls its `search` function. `WebsiteSearch` is a wrapper on top of `FullTextSearch` class, which is where the `search` function [is defined](https://github.com/frappe/frappe/blob/135fb6a486ac08ed5264038ba7dc77f04d21b8ed/frappe/search/full_text_search.py#L110).
5. This calls a `Whoosh` searcher to do the actual search. I haven't traced any further than this.
In the last one, the developer proposes this comand:
bench --site <sitename> rebuild-search-index
but dont work for me.
Its better to write your issue in Github.
thefox
January 11, 2024, 12:31pm
3
thanks, normally I issue tickets on github. Still think this can be helpful for less technical users to get some information
Search is not working for me on Wiki. I am using Wiki on Frappe Cloud in ERPNext v15. I have created a space, and some wiki pages under it. Have added keywords, and description in Meta tags description. I also have checked redisearch and show search bar … no success.