Commit 46aa2b02 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-elasticsearch-index-with-strict-mapping' into 'master'

elasticsearch: Fix indexing blobs and commits with strict mapping on

See merge request gitlab-org/gitlab-ee!10322
parents c37e8a3b ab428f2d
......@@ -145,6 +145,8 @@ module Elastic
### REPOSITORIES
indexes :blob do
indexes :type, type: :keyword
indexes :id, type: :text,
index_options: 'offsets',
analyzer: :sha_analyzer
......@@ -168,6 +170,8 @@ module Elastic
end
indexes :commit do
indexes :type, type: :keyword
indexes :id, type: :text,
index_options: 'offsets',
analyzer: :sha_analyzer
......
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