Commit 9fcabadd authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-improve-es-elasticsearch-troubleshooting' into 'master'

Docs: Improve ElasticSearch troubleshooting

See merge request gitlab-org/gitlab!56840
parents 2c9016d6 b5ca2862
...@@ -203,7 +203,7 @@ To do this: ...@@ -203,7 +203,7 @@ To do this:
```rails ```rails
u = User.find_by_email('email_of_user_doing_search') u = User.find_by_email('email_of_user_doing_search')
s = SearchService.new(u, {:search => 'search_term'}) s = SearchService.new(u, {:search => 'search_term'})
pp s.search_objects.class.name pp s.search_objects.class
``` ```
The output from the last command is the key here. If it shows: The output from the last command is the key here. If it shows:
...@@ -217,7 +217,9 @@ The output from the last command is the key here. If it shows: ...@@ -217,7 +217,9 @@ The output from the last command is the key here. If it shows:
If all the settings look correct and it is still not using Elasticsearch for the search function, it is best to escalate to GitLab support. This could be a bug/issue. If all the settings look correct and it is still not using Elasticsearch for the search function, it is best to escalate to GitLab support. This could be a bug/issue.
Moving past that, it is best to attempt the same search using the [Elasticsearch Search API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html) and compare the results from what you see in GitLab. Moving past that, it is best to attempt the same [search via the Rails console](../../integration/elasticsearch.md#i-indexed-all-the-repositories-but-i-cant-get-any-hits-for-my-search-term-in-the-ui)
or the [Elasticsearch Search API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html),
and compare the results from what you see in GitLab.
If the results: If the results:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment