Commit 072224a7 authored by Mark Chao's avatar Mark Chao

Remove field_name_table for now

It is decided to leave this until later
as it does impose complexity on go indexer.
parent 75232f92
......@@ -3,22 +3,6 @@
module Elastic
module Latest
module GitInstanceProxy
GITALY_TRANSFORM_TABLES = {
commit: {
'Type' => 'type',
'Author' => 'author',
'Committer' => 'committer',
'RepoID' => 'rid',
'Message' => 'message',
'SHA' => 'sha'
},
blob: {
'Type' => 'type',
'OID' => 'oid',
'RepoID' => 'rid'
}
}.freeze
def self.methods_for_all_write_targets
super + [:delete_index_for_commits_and_blobs]
end
......
......@@ -107,7 +107,6 @@ module Gitlab
def elasticsearch_config(target)
config = Gitlab::CurrentSettings.elasticsearch_config.dup
config[:field_name_table] = target.real_class::GITALY_TRANSFORM_TABLES
config[:index_name] = target.index_name
config.to_json
end
......
......@@ -284,7 +284,6 @@ describe Gitlab::Elastic::Indexer do
def elasticsearch_config
config = Gitlab::CurrentSettings.elasticsearch_config.dup
config.merge!(
field_name_table: Elastic::Latest::GitInstanceProxy::GITALY_TRANSFORM_TABLES,
index_name: 'gitlab-test'
)
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