WIP: Improve file search result parsing
What does this MR do?
Improve file search result parsing.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
Screenshots (if relevant)
What are the relevant issue numbers?
Fixes #21801 (moved).