code4romania / code4romania/website-factory
[Admin Search] Improve the admin search
- Dominant language
- PHP
- Stars
- 26
- Forks
- 18
- Avg merge
- 1m
- Merged PRs (30d)
- 14
Description
**Describe the bug**
Currently, the search will only include some of the search results, even those that are the exact name of the page. This last use-case might be because it's a site with many pages, and the page I'm looking for is one of the very first created, but I need to figure it out.
**To Reproduce**
_Possible prerequisite: These results were reproduced for a WF instance with >300 published pages, and most of the issues were with pages created a long time ago (the first 19 IDs were consistently not being found)_
Steps to reproduce the behavior:
1. Log in as an admin/editor on the WF site
2. Click on the search bar from the top
3. Search for a page name you would expect to find
4. The chances of finding the page might not be 100%
**Expected behavior**
The following `[search queries]` -> `search result` combinations should work (that means the expected `search result` must be returned).
- Diacritics are a constant issue: `[Cum Funcționăm, funcționăm, functionam, funct]` -> `Cum Funcționăm`
- Sometimes the exact name doesn't match `[Health for Romania]` -> `Health for Romania` (this worked for shorter page names created not long ago)
**Additional context**
The testing was done in a WF instance deployed into production, so adding more context is complicated. Contact @tudoramariei for more details on how to reproduce the issues.
Contributor guide
Assessment
This issue has not been assessed yet.