Possible unnecessary field analysis in Elasticsearch
I was just looking through the field analysis and wanted to note a few different fields that may not require any analysis. They could either be keyword
or just removed entirely from the index which could save storage:
-
indexes :state, type: :text
=>keyword
-
indexes :target_branch, type: :text
=>keyword
(maybe we want full text search on this but I don't know how valuable that is) -
indexes :source_branch, type: :text
=>keyword
(maybe we want full text search on this but I don't know how valuable that is) -
indexes :merge_status, type: :text
=>keyword
-
commit.commiter/author
:indexes :email, type: :text, index_options: 'docs'
=>keyword
(presumably we aren't really ever going to need to do full text search of author email of commits and there are many commits so this may save a good amount of space)
Edited by Dylan Griffith