Draft: Advanced Search: Add extension to the main index
What does this MR do and why?
This is part of &7257
This MR adds the extension
field to our main Advanced Search index (gitlab-production
).
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
- Enable Advanced Search if it's not configured
- Check that you don't have the
extension
field in the main index mapping by executingcurl -s http://localhost:9200/gitlab-development | jq -c 'paths | select(.[-1] == "extension")'
- Checkout this MR's branch
git checkout 347704-add-extension-field-to-es-mappings
- In order to execute Advanced Search migrations execute this command in rails console:
Elastic::MigrationWorker.new.perform
- Ensure that this commands now returns results:
curl -s http://localhost:9200/gitlab-development | jq -c 'paths | select(.[-1] == "extension")'
- You can also inspect the output of http://localhost:9200/gitlab-development to find
"extension": { "type": "keyword" }
- Also, you can check
log/elasticsearch.log
and check that the migration has been successfully applied.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #347704 (closed)
Edited by Dmitry Gruzd