Search won't find files by path: if they have a space in their name
Summary
When a file has a space in the name (eg. My File.txt
) you cannot find that file using path:
prefix search by searching for any part of it's name (eg. path:File
or path:"My File"
or any other similar combination of things).
Steps to reproduce
- Ensure advanced search is enabled for the project you are testing with
- Create a file called "My File.txt" with the content
searchable content
- Search the project for
searchable
. Confirm the file appears under theCode
tab. (may take a minute before the document is indexed - Then try searching for
* path:File
and you get no results. Also* path:My File
or* path:"My File"
or* path:"My File.txt"
or* path:"My*"
. None of them find the file
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
Edited by Dylan Griffith