Skip to content

Filenames with dashes not showing up in index

Summary

This was reported on a support case:

Searching for * filename:FileName.yml for a file starting with a number and a dash (example: 99-FileName.yml) on the default branch is not returning any results. Searching for the file directly doesn’t even show up. The file was nested within 7 folders in the project repository.

Searches tried:

  • * filename:FileName.yml
  • * filename:*FileName.yml
  • 99-FileName.yml

Steps to reproduce

Attempted to reproduce the issue locally by adding a file name that had the same format as the issue.

Note: we were not able to reproduce the behavior. Due to this it may be that the file is not contained in the index.

What is the current bug behavior?

File is not found when doing an Advanced Search

What is the expected correct behavior?

File should be found with doing an Advanced Search

Relevant logs and/or screenshots

Possible fixes

If the file is not contained in the index, we could try re-indexing the project to see if that fixes the issue.