Global search return wrong result

Summary

I'm using search for exact string match for example: "Find log for apple" and the return result from the global search doesn't contain this phrase. Screenshot:

Screenshot_2018-11-13_at_9.20.00

Steps to reproduce

Search for phrase with double quotes "Example search" that contains spaces

What is the current bug behavior?

The result from the search is totally wrong. It doesn't contain neither the full phrase or even part of it

What is the expected correct behavior?

Return only files that contains the exact phrase

Results of GitLab environment info

GitLab 11.4.5-ee (bf6db469) GitLab Shell 8.3.3 GitLab Workhorse v7.0.0 GitLab API v4 Ruby 2.4.5p335 Rails 4.2.10 postgresql

Possible fixes

The is probably in how you parse the search string that the customer writes (not escaping correctly the string) or how you pass it to the elasticsearch API

Assignee Loading
Time tracking Loading