Commit fb3f6d80 authored by Thong Kuah's avatar Thong Kuah

Merge branch '213035-more-elasticsearch-index-options-optimizations' into 'master'

Change more Elasticsearch indexes to keyword type

See merge request gitlab-org/gitlab!46640
parents 8f0042e8 5f33219d
---
title: Change more Elasticsearch indexes to keyword type to save storage
merge_request: 46640
author:
type: performance
......@@ -132,7 +132,7 @@ module Elastic
index_options: 'positions'
indexes :description, type: :text,
index_options: 'positions'
indexes :state, type: :text
indexes :state, type: :keyword
indexes :project_id, type: :integer
indexes :author_id, type: :integer
......@@ -150,11 +150,9 @@ module Elastic
indexes :assignee_id, type: :integer
### MERGE REQUESTS
indexes :target_branch, type: :text,
index_options: 'docs'
indexes :source_branch, type: :text,
index_options: 'docs'
indexes :merge_status, type: :text
indexes :target_branch, type: :keyword
indexes :source_branch, type: :keyword
indexes :merge_status, type: :keyword
indexes :source_project_id, type: :integer
indexes :target_project_id, type: :integer
......@@ -234,13 +232,13 @@ module Elastic
indexes :author do
indexes :name, type: :text, index_options: 'positions'
indexes :email, type: :text, index_options: 'positions'
indexes :email, type: :keyword
indexes :time, type: :date, format: :basic_date_time_no_millis
end
indexes :committer do
indexes :name, type: :text, index_options: 'positions'
indexes :email, type: :text, index_options: 'positions'
indexes :email, type: :keyword
indexes :time, type: :date, format: :basic_date_time_no_millis
end
......
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