Convert GLQL Finder to Work Items Advanced finder
Let's refactor existing GLQL finder to be reusable Work Items Advanced finder without tightly coupling it to GLQL.
There is an existing design document for that gitlab-com/content-sites/handbook!12300 (closed)
Also, consider sorting the results from ES in memory similar to what the security infrastructure team did https://gitlab.com/gitlab-org/gitlab/-/blob/b0eab4ea02bdcf62a6d573f27a627d21e690b213/ee/app/graphql/resolvers/vulnerabilities_resolver.rb#L117
We also might need to (please refer to this comment for additional info as to why refactoring this)\
- for issues query, removing the simple query string/match phrase query (and possibly knn) piece if
*is provided. this could apply to all indices really- not querying notes index if
*is provided
Edited by 🤖 GitLab Bot 🤖