Elasticsearch not finding projects in search
Summary
As logged by customer:
We have a similar issue to 2280 which was fixed with 9.1.2-ee. Currently we have gitlab 9.1.2-ee and elasticsearch 5.1.2. Experimental repository indexing is turned off. Searching for projects doesn't work. The result is always 0. (The badge next to Projects is 0). So it's not exactly the same issue as 2280 where the badge next to commits showed the correct number.
Customer ticket:
ZD: https://gitlab.zendesk.com/agent/tickets/75278
Steps to reproduce
I have successfully reproduced with the following:
-
9.1.2 GitLab Omnibus installed to a VM
-
5.1.2 Elasticsearch in Docker (docker.elastic.co/elasticsearch/elasticsearch:5.1.2).
-
Indexes created (note that it indexes my test projects):
ubuntu@ubuntu-xenial:~$ sudo gitlab-rake gitlab:elastic:index
Index created
Index status has been reset
Indexing project repositories...I, [2017-05-04T12:39:01.250425 #15910] INFO -- : Indexing Administrator / test123 (ID=1)...
I, [2017-05-04T12:39:01.369548 #15910] INFO -- : Indexing Administrator / test123 (ID=1) is done!
I, [2017-05-04T12:39:01.370815 #15910] INFO -- : Indexing Administrator / test456 (ID=2)...
I, [2017-05-04T12:39:01.407353 #15910] INFO -- : Indexing Administrator / test456 (ID=2) is done!
I, [2017-05-04T12:39:01.522318 #15910] INFO -- : Indexing Projects...
I, [2017-05-04T12:39:01.525489 #15910] INFO -- : Indexing Issues...
I, [2017-05-04T12:39:01.526520 #15910] INFO -- : Indexing MergeRequests...
I, [2017-05-04T12:39:01.530789 #15910] INFO -- : Indexing Snippets...
I, [2017-05-04T12:39:01.531513 #15910] INFO -- : Indexing Notes...
I, [2017-05-04T12:39:01.729131 #15910] INFO -- : Indexing Issues... done
I, [2017-05-04T12:39:01.729457 #15910] INFO -- : Indexing Milestones...
I, [2017-05-04T12:39:01.768065 #15910] INFO -- : Indexing MergeRequests... done
I, [2017-05-04T12:39:01.885541 #15910] INFO -- : Indexing Milestones... done
I, [2017-05-04T12:39:01.887628 #15910] INFO -- : Indexing Projects... done
I, [2017-05-04T12:39:01.897105 #15910] INFO -- : Indexing Snippets... done
I, [2017-05-04T12:39:01.906345 #15910] INFO -- : Indexing Notes... done
What is the current bug behavior?
Search for "test" which should match both projects, search returns 0 results.
Search for exact project name, search returns 0 results.
What is the expected correct behavior?
Search for "test" which should match both projects, search returns 2 results.
Search for exact project name, search returns 1 result.
Relevant logs and/or screenshots
Environment
Omnibus 9.1.2 install, Ubuntu 16.04.
Only configuration applied was to enable Elasticsearch and save the connection URL.
Experimental repository indexing not enabled.