[Elastic] Allows to search within project by commit's hash

We merged this feature for regular search and I think we should do the same for ES search because of UX and code design consistency.

@rymai Mocked this functionality for ES in CE->EE MR https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1116 but I think we should implement it.

/cc @smcgivern

Assignee Loading
Time tracking Loading